Struct ring_compat::signature::ecdsa::p256::NistP256 [−][src]
pub struct NistP256;
This is supported on crate feature
signature
only.NIST P-256 elliptic curve.
This curve is also known as prime256v1 (ANSI X9.62) and secp256r1 (SECG) and is specified in FIPS 186-4: Digital Signature Standard (DSS):
https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-4.pdf
It’s included in the US National Security Agency’s “Suite B” and is widely used in protocols like TLS and the associated X.509 PKI.
Its equation is y² = x³ - 3x + b
over a ~256-bit prime field where b
is
the “verifiably random”† constant:
b = 41058363725152142129326129780047268409114441015993725554835256314039467401291
† NOTE: the specific origins of this constant have never been fully disclosed (it is the SHA-1 digest of an inexplicable NSA-selected constant)
Trait Implementations
impl Curve for NistP256
[src]
impl Curve for NistP256
[src]type FieldSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
256-bit (32-byte)
impl CurveAlg for NistP256
[src]
impl CurveAlg for NistP256
[src]fn signing_alg() -> &'static EcdsaSigningAlgorithm
[src]
fn verify_alg() -> &'static EcdsaVerificationAlgorithm
[src]
impl PartialOrd<NistP256> for NistP256
[src]
impl PartialOrd<NistP256> for NistP256
[src]pub fn partial_cmp(&self, other: &NistP256) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl PointCompression for NistP256
[src]
impl PointCompression for NistP256
[src]pub const COMPRESS_POINTS: bool
[src]
NIST P-256 points are typically uncompressed.
impl StructuralEq for NistP256
[src]
impl StructuralEq for NistP256
[src]impl StructuralPartialEq for NistP256
[src]
impl StructuralPartialEq for NistP256
[src]Auto Trait Implementations
impl RefUnwindSafe for NistP256
impl RefUnwindSafe for NistP256
impl UnwindSafe for NistP256
impl UnwindSafe for NistP256