[−][src]Struct signatory::ecdsa::curve::nistp256::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]
impl WeierstrassCurve for NistP256
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 PartialEq<NistP256> for NistP256
[src]
impl PartialEq<NistP256> for NistP256
fn eq(&self, other: &NistP256) -> bool
[src]
fn eq(&self, other: &NistP256) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for NistP256
[src]
impl Eq for NistP256
impl Debug for NistP256
[src]
impl Debug for NistP256
impl Hash for NistP256
[src]
impl Hash for NistP256
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for NistP256
[src]
impl Copy for NistP256
impl Clone for NistP256
[src]
impl Clone for NistP256
fn clone(&self) -> NistP256
[src]
fn clone(&self) -> NistP256
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for NistP256
[src]
impl Default for NistP256
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self