[][src]Struct signatory::ecdsa::curve::nistp256::NistP256

pub struct NistP256;

The NIST P-256 elliptic curve: y² = x³ - 3x + b over a ~256-bit prime field where b is "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)

NIST P-256 is also known as prime256v1 (ANSI X9.62) and secp256r1 (SECG)

Trait Implementations

impl WeierstrassCurve for NistP256[src]

const CURVE_KIND: WeierstrassCurveKind[src]

Elliptic curve kind

type ScalarSize = U32

Random 256-bit (32-byte) private scalar

type CompressedPointSize = U33

Size of a compressed elliptic curve point serialized using Elliptic-Curve-Point-to-Octet-String encoding

type UntaggedPointSize = U64

Size of a raw uncompressed elliptic curve point sans the 0x04 tag byte added in the UncompressedPointSize value.

type UncompressedPointSize = U65

Size of an uncompressed elliptic curve point serialized using the Elliptic-Curve-Point-to-Octet-String encoding (including the 0x04 tag)

type Asn1SignatureMaxSize = U73

Maximum size of an ASN.1 DER encoded signature

type FixedSignatureSize = U64

Concatenated r || s values (32-bytes each)

impl Debug for NistP256[src]

impl PartialEq<NistP256> for NistP256[src]

impl Eq for NistP256[src]

impl Ord for NistP256[src]

impl PartialOrd<NistP256> for NistP256[src]

impl Hash for NistP256[src]

impl Copy for NistP256[src]

impl Clone for NistP256[src]

impl Default for NistP256[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> Same<T> for T

type Output = T

Should always be Self