cose-wg / cose-spec

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

Rewrite the KDF function text to use CBOR encoding rather than concatination #12

Closed jimsch closed 9 years ago

jimsch commented 9 years ago

the current KDF text about how to build the string to be hashed is a complete mess for JOSE.

It would be much simpler to define a CBOR structure to hold the individual fields, encode that structure and then hash it.

jimsch commented 9 years ago

This is not a problem with the NIST documents as it would the same as doing ASN.1. I really hated doing the byte munging especially in JavaScript to get the concat done right. However probably the correct answer for this is to say no, do what is done for JOSE.

jimsch commented 9 years ago

This issue went to the list and the concept of using CBOR arrays was not objected to.