cose-wg / CBOR-certificates

Other
11 stars 7 forks source link

Need to specify encoding order #27

Closed emanjon closed 4 years ago

emanjon commented 4 years ago

Maps and arrays need to be encoded in the same order as the sequence or set in the DER encoding.

highlunder commented 4 years ago

Agree, but where do you think this should be specified? We need to provide a new more complex example cert at some (later) point, but to address the issue now, do you see some additional text in the "Message Fields" section or something else?

emanjon commented 4 years ago

Somewhere where it fits the best. I guess it needs to be specified for SEQUANCE and SET with variable length. If we have done thing correctly these should correspond to CBOR arrays and maps.

emanjon commented 4 years ago

Done