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
Some applications require encoded cose binaries to be deterministically encoded.
As the protected header is fed into Sig_structure, Enc_structure and MAC_structure, reordering it may result authentication failure.
It is better to support deterministic encoding on protected and unprotected headers.
Some applications require encoded cose binaries to be deterministically encoded.
As the protected header is fed into
Sig_structure
,Enc_structure
andMAC_structure
, reordering it may result authentication failure.It is better to support deterministic encoding on protected and unprotected headers.
Background
Section 4.2.1 of RFC 8949 defines core deterministic encoding.
Since python 3.7+, the dictionaries are ordered by default, for example,
Current python-cwt behavior
This leads python-cwt generated headers like
displays
{4: b'11', 1: -7}
, which is not deterministically encoded (keys are not sorted in the bytewise lexicographic order).The text was updated successfully, but these errors were encountered: