Elliptic Curve Digital Signature Algorithm (ECDSA) as specified in FIPS 186-4 (Digital Signature Standard).
This crate provides generic ECDSA support which can be used in the following ways:
- Generic implementation of ECDSA usable with the following crates:
- Other crates which provide their own complete implementations of ECDSA can
also leverage the types from this crate to export ECDSA functionality in a
generic, interoperable way by leveraging
The ECDSA implementation contained in this crate has never been independently audited for security!
This crate contains a generic implementation of ECDSA which must be instantiated using a separate crate providing a concrete implementation of arithmetic for a particular curve. It’s possible timing variability can exist in concrete curve implementations, and thus this crate’s security can only be properly assessed for a specific elliptic curve.
USE AT YOUR OWN RISK!
This crate requires Rust 1.57 at a minimum.
We may change the MSRV in the future, but it will be accompanied by a minor version bump.
All crates licensed under either of
at your option.
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.
Please see type-specific documentation for more information.
Any crates which provide an implementation of ECDSA for a particular
elliptic curve can leverage the types from this crate, along with the
p384 crates to expose ECDSA functionality in
a generic, interoperable way by leveraging the
Signature type with in
conjunction with the
For example, the
ring-compat crate implements the
signature::Verifier traits in conjunction with the
p384::ecdsa::Signature types to
wrap the ECDSA implementations from ring in a generic, interoperable
Support for ECDSA signatures encoded as ASN.1 DER.
Low-level ECDSA primitives.
Define ECDSA signing test.
Define ECDSA verification test.
Define a Wycheproof verification test.
Recovery IDs, a.k.a. “recid”.
ECDSA signature (fixed-size). Generic over elliptic curve types.
ECDSA signing key. Generic over elliptic curves.
ECDSA verification key (i.e. public key). Generic over elliptic curves.
Marker trait for elliptic curves with prime order.