veraison / go-cose

go library for CBOR Object Signing and Encryption (COSE)
Mozilla Public License 2.0
49 stars 26 forks source link

Support for typ in protected header #184

Closed OR13 closed 1 month ago

OR13 commented 7 months ago

What is the areas you would like to add the new feature to?

Go-COSE Library

Is your feature request related to a problem?

I want to be able to use the typ header, as described in https://datatracker.ietf.org/doc/draft-ietf-cose-typ-header-parameter/

What solution do you propose?

Add the code point for the typ parameter to the header parameters exposed by this library.

What alternatives have you considered?

setting the parameter directly, without using the header parameters exposed by this library.

Any additional context?

This should be done after https://datatracker.ietf.org/doc/draft-ietf-cose-typ-header-parameter/ has been assigned an RFC number.

SteveLasker commented 6 months ago

pending expert review of https://datatracker.ietf.org/doc/draft-ietf-cose-typ-header-parameter/

OR13 commented 5 months ago

As discussed on the call, we will hope open PRs for this issue and the cwt claims in headers issue until RFC numbers are assigned for both.