Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide narrative for the ;# import directive.
We do *not* want to restate the below from RFC 9052. Address https://mailarchive.ietf.org/arch/msg/rats/iQ32uScNs2lcsAm9WJltbYJb894/ COSE_Key = { 1 => tstr / int, ? 2 => bstr, ? 3 => tstr / int, ? 4 => [+ tstr / int], ? 5 => bstr, * label => values, } COSE_Encrypt = [ Headers, ciphertext: bstr / nil, recipients: [+ COSE_recipient], ] COSE_Encrypt0 = [ Headers, ciphertext: bstr / nil, ] label = int / tstr values = any Headers = ( protected: empty_or_serialized_map, unprotected: header_map, ) COSE_recipient = [ Headers, ciphertext: bstr / nil, ? recipients: [+ COSE_recipient], ] empty_or_serialized_map = bstr .cbor header_map / bstr .size 0 header_map = {c Generic_Headers, * label => values, } Generic_Headers = ( ? 1 => int / tstr, ? 2 => [+ label], ? 3 => tstr / int, ? 4 => bstr, ? (5 => bstr // 6 => bstr), )
- Loading branch information