cose-wg / CBOR-certificates

Other
11 stars 7 forks source link

Encoding of timestamp #128

Closed gselander closed 1 year ago

gselander commented 1 year ago

the timestamp is encoded as a CBOR int (milliseconds since validityNotBefore)

Is CBOR int correct? validityNotBefore is encoded as Time.

highlunder commented 1 year ago

Since the timestamp tag is defined as millisec in rfc6962, we keep it as millisec encoded as long/int for practical purposes.

https://datatracker.ietf.org/doc/html/rfc6962