OutputSize bounds on DigestPrimitive (#774)
Notably for curves like P-521, the digest used to compute the signature is smaller than a serialized field element (SHA-512 w\ 64-byte output vs 66-byte serialized field elements). To support such curves, we need to remove this bound. The already implemented `bits2field` function as defined in RFC6979 § 2.3.2 and SEC1 § 2.3.8 handles producing a serialized field element from an input which may be a different size.
RustCrypto: Signatures

Support for digital signatures, which provide authentication of data using public-key cryptography.
All algorithms reside in the separate crates and implemented using traits from
the signature crate.
Crates are designed so they do not require the standard library (i.e. no_std)
and can be easily used for bare-metal or lightweight WebAssembly programming.
Crates
| Name | Algorithm | Crates.io | Documentation | Build |
|---|---|---|---|---|
dsa |
DSA | |||
ecdsa |
ECDSA | |||
ed25519 |
Ed25519 | |||
ed448 |
Ed448 | |||
rfc6979 |
RFC6979 |
NOTE: for RSA signatures see https://github.com/RustCrypto/RSA
Usage
Crates functionality is expressed in terms of traits defined in the signature
crate.
License
All crates licensed under either of
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.