1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
//! Elliptic Curve Digital Signature Algorithm (ECDSA)

pub use crate::NistP384;

/// ECDSA/P-384 signature (fixed-size)
pub type Signature = ecdsa::Signature<NistP384>;

/// ECDSA/P-384 signature (ASN.1 DER encoded)
pub type Asn1Signature = ecdsa::asn1::Signature<NistP384>;

impl ecdsa::CheckSignatureBytes for NistP384 {}

#[cfg(feature = "sha384")]
#[cfg_attr(docsrs, doc(cfg(feature = "sha384")))]
impl ecdsa::hazmat::DigestPrimitive for NistP384 {
    type Digest = sha2::Sha384;
}