cose-wg / cose-spec

CBOR version of the JOSE specifications
14 stars 12 forks source link

Use CBOR Tag 24 for protected attributes field (To be decoded later) #18

Closed jimsch closed 9 years ago

jimsch commented 9 years ago

It may be better to use the CBOR tag 24 rather than a bstr wrapper for the protected attributes field. The major question that needs to be addressed is how this is treated by existing parsers - will they try and decode it anyway or will the wait to decode them later.

It is going to be required that they are both decode later and immutable to changes if they run through an intermediary which will decode, modify and re-encode any of the top level information.

I don't believe that there is any benefits to using this rather than bstr for the payload field on signatures and macs since they could be any data type inside rather than a fixed one.

jimsch commented 9 years ago

Did not correctly read the spec.