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

add new tests for ES{256,384,512} #4

Merged
merged 6 commits into from
Mar 30, 2022
Merged

add new tests for ES{256,384,512} #4

merged 6 commits into from
Mar 30, 2022

Conversation

thomas-fossati
Copy link
Contributor

@thomas-fossati thomas-fossati commented Mar 28, 2022

Also a bunch of fixes and some cleanup.

Partially addresses #1

Copy link
Contributor

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

LGTM!

@qmuntal
Copy link

qmuntal commented Mar 29, 2022

I've successfully used these new tests in veraison/go-cose#19.

Just one comment: Verify cases don't need private key parameters. I would remove them to avoid confusion.

@thomas-fossati
Copy link
Contributor Author

I've successfully used these new tests in veraison/go-cose#19.

awesome!

Just one comment: Verify cases don't need private key parameters. I would remove them to avoid confusion.

👍 will drop "d" from those.

thomas-fossati and others added 6 commits March 29, 2022 13:39
* fix indentation
* add missing external data
* fix string encoding in diagnostic CBOR
* set a sensible title and description

Signed-off-by: Thomas Fossati <[email protected]>
* ECDSA w/ SHA-256 (sign)
* ECDSA w/ SHA-256 (successful verify)
* ECDSA w/ SHA-384 (sign)
* ECDSA w/ SHA-384 (successful verify)
* ECDSA w/ SHA-512 (sign)
* ECDSA w/ SHA-512 (successful verify)

Also add ES512 to the list of accepted algorithms in the schema

Signed-off-by: Thomas Fossati <[email protected]>
Signed-off-by: Thomas Fossati <[email protected]>
Signed-off-by: Thomas Fossati <[email protected]>
@thomas-fossati
Copy link
Contributor Author

Hearing no dissenting voices I'm going to merge this PR.

@thomas-fossati thomas-fossati merged commit df0c030 into main Mar 30, 2022
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.

3 participants