You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
payload (bytes): A content to be MACed, signed or encrypted.
152
152
key (Optional[COSEKeyInterface]): A content encryption key as COSEKey.
153
-
protected (Optional[dict]): Parameters that are to be cryptographically protected.
154
-
unprotected (Optional[dict]): Parameters that are not cryptographically protected.
153
+
protected (Optional[Union[dict, ResolvedHeader]]): Parameters that are to be cryptographically protected.
154
+
unprotected (Optional[Union[dict, ResolvedHeader]]): Parameters that are not cryptographically protected.
155
155
recipients (List[RecipientInterface]): A list of recipient information structures.
156
156
signers (List[Signer]): A list of signer information objects for
157
157
multiple signer cases.
@@ -385,7 +385,7 @@ def decode_with_headers(
385
385
Since non-AEAD ciphers DO NOT provide neither authentication nor integrity
386
386
of decrypted message, make sure to validate them outside of this library.
387
387
Returns:
388
-
Tuple[Dict[int, Any], Dict[int, Any], bytes]: A dictionary data of decoded protected headers, and a dictionary data of unprotected headers, and a byte string of decoded payload.
388
+
Tuple[Dict[Union[str, int], Any], Dict[Union[str, int], Any], bytes]: A dictionary data of decoded protected headers, and a dictionary data of unprotected headers, and a byte string of decoded payload.
0 commit comments