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 EcdsaCurve trait impls #1019

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Add EcdsaCurve trait impls #1019

merged 1 commit into from
Jan 17, 2024

Conversation

tarcieri
Copy link
Member

This is a marker trait added in RustCrypto/signatures#787 which marks an elliptic curve as being intended for use with ECDSA.

It's the intended successor of the SignPrimitive and VerifyPrimitive traits, carrying with it the one bit of information needed to eliminate the need for custom impls: a flag for low-S normalization.

bp256, bp384, k256, p192, p224, p256, p384, and p521 have all received trait impls.

Of those, only k256 has the NORMALIZE_S flag set to true.

This is a marker trait added in RustCrypto/signatures#787 which marks an
elliptic curve as being intended for use with ECDSA.

It's the intended successor of the `SignPrimitive` and `VerifyPrimitive`
traits, carrying with it the one bit of information needed to eliminate
the need for custom impls: a flag for low-S normalization.

`bp256`, `bp384`, `k256`, `p192`, `p224`, `p256`, `p384`, and `p521`
have all received trait impls.

Of those, only `k256` has the `NORMALIZE_S` flag set to `true`.
@tarcieri tarcieri force-pushed the ecdsa-curve-trait-impls branch from 7ea3b20 to eb20393 Compare January 17, 2024 22:22
@tarcieri tarcieri merged commit 32e6310 into master Jan 17, 2024
130 checks passed
@tarcieri tarcieri deleted the ecdsa-curve-trait-impls branch January 17, 2024 22:38
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.

1 participant