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

ecdsa: refactor prehash_to_field_bytes to bits2field free func #574

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Nov 2, 2022

Removes the verbosely named prehash_to_field_bytes from the DigestPrimitive trait, chaning it to a bits2field free function which has a C: PrimeCurve generic parameter.

The name is inspired by bits2int from RFC6979, however it does not perform a reduction step.

Removes the verbosely named `prehash_to_field_bytes` from the
`DigestPrimitive` trait, chaning it to a `bits2field` free function
which has a `C: PrimeCurve` generic parameter.

The name is inspired by `bits2int` from RFC6979, however it does not
perform a reduction step.
@tarcieri tarcieri merged commit 01c547e into master Nov 2, 2022
@tarcieri tarcieri deleted the ecdsa/refactor-bits2field branch November 2, 2022 15:38
@tarcieri tarcieri mentioned this pull request Jan 15, 2023
sorah added a commit to sorah/needroleshere that referenced this pull request Nov 4, 2023
Resolve incompatibilities as follows:

- src/certificate.rs: RustCrypto/formats#771
- src/cmd/serve.rs: Move to FromRequestParts and use headers crate

- src/ecdsa_sha256.rs: RustCrypto/traits#1196
  and RustCrypto/signatures#574

- src/error.rs: Remove Duplicates

- src/identity.rs: Remove owned validation logic as it should be done at
    x509_cert::serial_number::SerialNumber<x509_cert::certificate::Rfc5280>

- src/sign.rs: RustCrypto/RSA#244
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