Skip to content

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

Merged
thomas-fossati merged 6 commits intomainfrom
batch-1
Mar 30, 2022
Merged

add new tests for ES{256,384,512}#4
thomas-fossati merged 6 commits intomainfrom
batch-1

Conversation

@thomas-fossati
Copy link
Copy Markdown
Contributor

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

Also a bunch of fixes and some cleanup.

Partially addresses #1

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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 <thomas.fossati@arm.com>
* 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 <thomas.fossati@arm.com>
Signed-off-by: Thomas Fossati <thomas.fossati@arm.com>
Signed-off-by: Thomas Fossati <thomas.fossati@arm.com>
Signed-off-by: Thomas Fossati <thomas.fossati@arm.com>
Signed-off-by: Thomas Fossati <thomas.fossati@arm.com>
@thomas-fossati
Copy link
Copy Markdown
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