-
Notifications
You must be signed in to change notification settings - Fork 10
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
Why ./sign1-tests/sign-pass-01.json is categorized as a valid/pass scenario? #107
Comments
Agree this shouldn't be a test case that is marked as PASS, unless I am entirely misunderstanding the intent of the test case. In fact, there is this bit: "failures":{
"ChangeProtected":"a0"
}, which seems to suggest a failure is expected? I tried to interpret that against the CDDL schema but couldn't find an answer. BTW, it seems that we need to update the schema to match the example in question (e.g., the |
Indeed, I've also confirmed that this example is mislabelled as it fails to validate. The protected headers are encoded as an empty serialized map, e.g. RFC 8152 says the following about encodings of the protected headers:
So it appears that the example was indeed designed to fail. Re-encoding the protected headers as an empty |
From https://datatracker.ietf.org/doc/html/rfc8152#section-3.1 alg:
But the example https://github.com/cose-wg/Examples/blob/master/sign1-tests/sign-pass-01.json puts the alg in the unprotected bucket, the protected bucket is
a0
(empty) and there is no externally supplied data.Also, what does "Redo protected" mean in
"title":"sign-pass-01: Redo protected"
?The text was updated successfully, but these errors were encountered: