[][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]

Elliptic curve kind

Random 256-bit (32-byte) private scalar

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

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

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

Maximum size of an ASN.1 DER encoded signature

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

impl PartialEq<NistP256> for NistP256
[src]

This method tests for !=.

impl Eq for NistP256
[src]

impl Debug for NistP256
[src]

impl Hash for NistP256
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for NistP256
[src]

impl Clone for NistP256
[src]

Performs copy-assignment from source. Read more

impl Default for NistP256
[src]

Auto Trait Implementations

impl Send for NistP256

impl Sync for NistP256

Blanket Implementations

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> BorrowMut 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]

impl<T> Same for T

Should always be Self