[−][src]Struct signatory::ecdsa::curve::nistp384::NistP384
The NIST P-384 elliptic curve: y² = x³ - 3x + b over a ~384-bit prime field where b is "verifiably random"† constant:
b = 2758019355995970587784901184038904809305690585636156852142 8707301988689241309860865136260764883745107765439761230575
† 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-384 is also known as secp384r1 (SECG)
Trait Implementations
impl WeierstrassCurve for NistP384
[src]
const CURVE_KIND: WeierstrassCurveKind
[src]
Elliptic curve kind
type ScalarSize = U48
Random 384-bit (48-byte) private scalar
type CompressedPointSize = U49
Size of a compressed elliptic curve point serialized using
Elliptic-Curve-Point-to-Octet-String
encoding
type UntaggedPointSize = U96
Size of a raw uncompressed elliptic curve point sans the 0x04
tag byte added in the UncompressedPointSize
value.
type UncompressedPointSize = U97
Size of an uncompressed elliptic curve point serialized using
the Elliptic-Curve-Point-to-Octet-String
encoding (including the
0x04
tag)
type Asn1SignatureMaxSize = U105
Maximum size of an ASN.1 DER encoded signature
type FixedSignatureSize = U96
Concatenated r || s
values (48-bytes each)
impl Debug for NistP384
[src]
impl PartialEq<NistP384> for NistP384
[src]
impl Eq for NistP384
[src]
impl Ord for NistP384
[src]
fn cmp(&self, other: &NistP384) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialOrd<NistP384> for NistP384
[src]
fn partial_cmp(&self, other: &NistP384) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Hash for NistP384
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Copy for NistP384
[src]
impl Clone for NistP384
[src]
impl Default for NistP384
[src]
Auto Trait Implementations
impl Unpin for NistP384
impl Send for NistP384
impl Sync for NistP384
impl UnwindSafe for NistP384
impl RefUnwindSafe for NistP384
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self