pub struct NistP384;
Available on crate features
ecdsa
and p384
only.Expand description
NIST P-384 elliptic curve.
Trait Implementations§
Source§impl AssociatedOid for NistP384
impl AssociatedOid for NistP384
Source§const OID: ObjectIdentifier
const OID: ObjectIdentifier
The OID associated with this type.
Source§impl Curve for NistP384
impl Curve for NistP384
Source§impl CurveArithmetic for NistP384
impl CurveArithmetic for NistP384
Source§type AffinePoint = AffinePoint<NistP384>
type AffinePoint = AffinePoint<NistP384>
Elliptic curve point in affine coordinates.
Source§type ProjectivePoint = ProjectivePoint<NistP384>
type ProjectivePoint = ProjectivePoint<NistP384>
Elliptic curve point in projective coordinates. Read more
Source§impl DigestPrimitive for NistP384
impl DigestPrimitive for NistP384
Source§impl DigestSigner<<NistP384 as DigestPrimitive>::Digest, SignatureBytes> for SigningKey<NistP384>
impl DigestSigner<<NistP384 as DigestPrimitive>::Digest, SignatureBytes> for SigningKey<NistP384>
Source§fn try_sign_digest(
&self,
digest: <NistP384 as DigestPrimitive>::Digest,
) -> Result<SignatureBytes, Error>
fn try_sign_digest( &self, digest: <NistP384 as DigestPrimitive>::Digest, ) -> Result<SignatureBytes, Error>
Attempt to sign the given prehashed message
Digest
, returning a
digital signature on success, or an error if something went wrong.Source§fn sign_digest(&self, digest: D) -> S
fn sign_digest(&self, digest: D) -> S
Source§impl DigestVerifier<<NistP384 as DigestPrimitive>::Digest, SignatureBytes> for VerifyingKey<NistP384>
impl DigestVerifier<<NistP384 as DigestPrimitive>::Digest, SignatureBytes> for VerifyingKey<NistP384>
Source§fn verify_digest(
&self,
digest: <NistP384 as DigestPrimitive>::Digest,
signature: &SignatureBytes,
) -> Result<(), Error>
fn verify_digest( &self, digest: <NistP384 as DigestPrimitive>::Digest, signature: &SignatureBytes, ) -> Result<(), Error>
Verify the signature against the given
Digest
output.Source§impl JwkParameters for NistP384
impl JwkParameters for NistP384
Source§impl Ord for NistP384
impl Ord for NistP384
Source§impl PartialOrd for NistP384
impl PartialOrd for NistP384
Source§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
Source§type CurveGroup = ProjectivePoint<NistP384>
type CurveGroup = ProjectivePoint<NistP384>
Prime order elliptic curve group.
Source§impl PrimeCurveParams for NistP384
Adapted from NIST SP 800-186 § G.1.3: Curve P-384.
impl PrimeCurveParams for NistP384
Adapted from NIST SP 800-186 § G.1.3: Curve P-384.
Source§const EQUATION_A: FieldElement
const EQUATION_A: FieldElement
a = -3 (0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc)
Source§const EQUATION_B: FieldElement
const EQUATION_B: FieldElement
b = b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef
Source§const GENERATOR: (FieldElement, FieldElement)
const GENERATOR: (FieldElement, FieldElement)
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
Source§type FieldElement = FieldElement
type FieldElement = FieldElement
Base field element type.
Source§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 StructuralPartialEq for NistP384
Auto Trait Implementations§
impl Freeze for NistP384
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
Source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
Source§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,
Source§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.