pub struct NistP384;
Expand description
NIST P-384 elliptic curve.
Trait Implementations§
source§impl Curve for NistP384
impl Curve for NistP384
source§impl CurveAlgorithm for NistP384
impl CurveAlgorithm for NistP384
source§fn asymmetric_algorithm() -> Algorithm
fn asymmetric_algorithm() -> Algorithm
YubiHSM asymmetric algorithm for this elliptic curve
source§impl DigestPrimitive for NistP384
Available on crate feature sha384
only.
impl DigestPrimitive for NistP384
Available on crate feature
sha384
only.source§impl Ord for NistP384
impl Ord for NistP384
source§impl PartialEq<NistP384> for NistP384
impl PartialEq<NistP384> for NistP384
source§impl PartialOrd<NistP384> for NistP384
impl PartialOrd<NistP384> for NistP384
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PointCompaction for NistP384
impl PointCompaction for NistP384
source§const COMPACT_POINTS: bool = false
const COMPACT_POINTS: bool = false
NIST P-384 points are typically uncompressed.
source§impl PointCompression for NistP384
impl PointCompression for NistP384
source§const COMPRESS_POINTS: bool = false
const COMPRESS_POINTS: bool = false
NIST P-384 points are typically uncompressed.
source§impl PrimeCurveArithmetic for NistP384
impl PrimeCurveArithmetic for NistP384
§type CurveGroup = ProjectivePoint<NistP384>
type CurveGroup = ProjectivePoint<NistP384>
Prime order elliptic curve group.
source§impl PrimeCurveParams for NistP384
impl PrimeCurveParams for NistP384
Adapted from NIST SP 800-186 § G.1.3: Curve P-384.
source§const EQUATION_A: FieldElement = FieldElement::from_u64(3).neg()
const EQUATION_A: FieldElement = FieldElement::from_u64(3).neg()
a = -3 (0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc)
source§const EQUATION_B: FieldElement = FieldElement::from_hex("b3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef")
const EQUATION_B: FieldElement = FieldElement::from_hex("b3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef")
b = b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef
source§const GENERATOR: (FieldElement, FieldElement) = (FieldElement::from_hex("aa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),
FieldElement::from_hex("3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"))
const GENERATOR: (FieldElement, FieldElement) = (FieldElement::from_hex("aa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"), FieldElement::from_hex("3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"))
Base point of P-384.
Defined in NIST SP 800-186 § G.1.3: Curve P-384.
Gₓ = aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98
59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7
Gᵧ = 3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c
e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f
§type FieldElement = FieldElement
type FieldElement = FieldElement
Base field element type.
§type PointArithmetic = EquationAIsMinusThree
type PointArithmetic = EquationAIsMinusThree
Point arithmetic implementation, might be optimized for this specific curve
impl Copy for NistP384
impl Eq for NistP384
impl PrimeCurve for NistP384
impl StructuralEq for NistP384
impl StructuralPartialEq for NistP384
Auto Trait Implementations§
impl RefUnwindSafe for NistP384
impl Send for NistP384
impl Sync for NistP384
impl Unpin for NistP384
impl UnwindSafe for NistP384
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<C> ValidatePublicKey for Cwhere
C: CurveArithmetic,
<C as CurveArithmetic>::AffinePoint: FromEncodedPoint<C> + ToEncodedPoint<C>,
<C as Curve>::FieldBytesSize: ModulusSize,
impl<C> ValidatePublicKey for Cwhere C: CurveArithmetic, <C as CurveArithmetic>::AffinePoint: FromEncodedPoint<C> + ToEncodedPoint<C>, <C as Curve>::FieldBytesSize: ModulusSize,
§fn validate_public_key(
secret_key: &SecretKey<C>,
public_key: &EncodedPoint<<C as Curve>::FieldBytesSize>
) -> Result<(), Error>
fn validate_public_key( secret_key: &SecretKey<C>, public_key: &EncodedPoint<<C as Curve>::FieldBytesSize> ) -> Result<(), Error>
Validate that the given
EncodedPoint
is a valid public key for the
provided secret value.