1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! ECDSA support for the NIST P-384 elliptic curve

pub use p384::NistP384;

use super::CurveAlg;
use ring::signature::{
    EcdsaSigningAlgorithm, EcdsaVerificationAlgorithm, ECDSA_P384_SHA384_FIXED,
    ECDSA_P384_SHA384_FIXED_SIGNING,
};

/// ECDSA/P-384 signature
pub type Signature = super::Signature<NistP384>;

/// ECDSA/P-384 signing key
pub type SigningKey = super::SigningKey<NistP384>;

/// ECDSA/P-384 verify key
pub type VerifyingKey = super::VerifyingKey<NistP384>;

impl CurveAlg for NistP384 {
    fn signing_alg() -> &'static EcdsaSigningAlgorithm {
        &ECDSA_P384_SHA384_FIXED_SIGNING
    }

    fn verify_alg() -> &'static EcdsaVerificationAlgorithm {
        &ECDSA_P384_SHA384_FIXED
    }
}