TimothyClaeys / pycose

A Python implementation of the COSE specification (CBOR Object Signing and Encryption) described in RFC 8152.
https://tools.ietf.org/html/rfc8152
Other
39 stars 24 forks source link

Adding cbor.tag #73

Closed JuliusGoddard closed 3 years ago

JuliusGoddard commented 3 years ago

Is it possible to add a cbor.tag at the beginning of the COSE signature? Many COSE signatures have these tags in front of them. it would only be a numerical value of "6" or "15" for example.

JuliusGoddard commented 3 years ago

Solved: the tag is added automatically as long as you specify this in the encoding step: en = msg.encode(tag=True,sign=True)