We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d1ef9 commit 8106acbCopy full SHA for 8106acb
1 file changed
cwt/cose.py
@@ -662,6 +662,8 @@ def _validate_cose_message(
662
return 0 # Encrypt
663
if recipients[0].context[0] in COSE_ALGORITHMS_HPKE.values():
664
665
+ if recipients[0].context[0] in COSE_ALGORITHMS_KEY_WRAP.values():
666
+ return 0 # Encrypt
667
if recipients[0].context[0] in COSE_ALGORITHMS_MAC.values():
668
return 1 # MAC
669
raise ValueError(f"Invalid alg in recipients' context information: {recipients[0]._context[0]}.")
0 commit comments