Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create custom string labels for protected headers #130

Open
hmueller314 opened this issue Oct 7, 2021 · 0 comments
Open

Cannot create custom string labels for protected headers #130

hmueller314 opened this issue Oct 7, 2021 · 0 comments

Comments

@hmueller314
Copy link

Currently rfc8152 defines generic header parameters:
Generic_Headers = (
? 1 => int / tstr, ; algorithm identifier
? 2 => [+label], ; criticality
? 3 => tstr / int, ; content type
? 4 => bstr, ; key identifier
? 5 => bstr, ; IV
? 6 => bstr, ; Partial IV
? 7 => COSE_Signature / [+COSE_Signature] ; Counter signature
)
with labels in the range [1, 7]. The code maps string labels in the JSON files to those numeric values (e.g. "alg" -> 1), but some applications require custom string labels to be included in a protected headers. For example c2pa requires X.509 certificates to be stored in a header named "x5chain". This is currently not supported in COSE-C.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant