go-cose icon indicating copy to clipboard operation
go-cose copied to clipboard

Add conformance tests for Ed25519 signatures

Open henrylyons opened this issue 2 years ago • 4 comments

What is the areas you would like to add the new feature to?

Go-COSE Library

Is your feature request related to a problem?

The project README states that this module supports Ed25519 signatures - however, there are no conformance tests for this. Please add conformance tests for these types of these signatures so that they can use to verify the correctness of the Ed25519 implementation in this module, and modules written in other languages as well (e.g., Rust).

What solution do you propose?

Add positive and negative conformance tests for Ed25519 signatures, covering signature creation and verification functionality.

What alternatives have you considered?

I can create separate Ed25519 conformance tests for my COSE implementation, but I prefer to have a common set of tests that can be used to test COSE implementations in different languages.

Any additional context?

No response

henrylyons avatar Sep 11 '23 19:09 henrylyons

https://datatracker.ietf.org/doc/html/rfc8152#section-8.2

Not sure if there are test vectors that we can import, but we should start by finding and linking them.

OR13 avatar Oct 06 '23 15:10 OR13

Blocked pending: https://github.com/gluecose/test-vectors/issues/15

OR13 avatar Oct 06 '23 15:10 OR13

Unblocked I think, see: https://github.com/gluecose/test-vectors/issues/15#issuecomment-1752432446

OR13 avatar Oct 09 '23 18:10 OR13