Skip to content

Validate generic headers#87

Merged
yogeshbdeshpande merged 1 commit intoveraison:mainfrom
qmuntal:headers
Jul 11, 2022
Merged

Validate generic headers#87
yogeshbdeshpande merged 1 commit intoveraison:mainfrom
qmuntal:headers

Conversation

@qmuntal
Copy link
Copy Markdown
Member

@qmuntal qmuntal commented Jul 6, 2022

This PR validates that the Common COSE Headers Parameters have to correct type.

The change has been quite disruptive for our test cases, because we were using headers containing invalid parameters. Most of the test changes are related to fixing those tests.

This PR does not validate counter signature nor x509 common parameters, as go-cose currently does not expose the CBOR types which are contained in those parameters.

Fix #82

Signed-off-by: qmuntal qmuntaldiaz@microsoft.com

Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Copy link
Copy Markdown
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome work.

@yogeshbdeshpande yogeshbdeshpande merged commit 33ff2e9 into veraison:main Jul 11, 2022
@qmuntal qmuntal deleted the headers branch July 11, 2022 16:09
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

Successfully merging this pull request may close these issues.

Header types are not validated

4 participants