pub struct Fp(pub [u64; 6]);Expand description
The P-384 coordinate field, GF(p) with p = 2^384 - 2^128 - 2^96 + 2^32 - 1.
Values are held in Montgomery form (a * R mod m). Arithmetic is
branch-free and carries no data-dependent memory access.
Tuple Fields§
§0: [u64; 6]Implementations§
Trait Implementations§
impl Copy for Fp
impl Eq for Fp
Source§impl Field for Fp
impl Field for Fp
Source§const BYTE_LEN: usize = 48
const BYTE_LEN: usize = 48
Width of
Self::Bytes.Source§fn from_bytes(bytes: &Self::Bytes) -> Option<Self>
fn from_bytes(bytes: &Self::Bytes) -> Option<Self>
Decode a canonical encoding, rejecting values at or above the modulus.
Source§fn from_bytes_reduced(bytes: &Self::Bytes) -> Self
fn from_bytes_reduced(bytes: &Self::Bytes) -> Self
Decode, reducing rather than rejecting.
Source§fn zero_bytes() -> Self::Bytes
fn zero_bytes() -> Self::Bytes
Build a zeroed byte buffer of the right width.
impl StructuralPartialEq for Fp
Auto Trait Implementations§
impl Freeze for Fp
impl RefUnwindSafe for Fp
impl Send for Fp
impl Sync for Fp
impl Unpin for Fp
impl UnsafeUnpin for Fp
impl UnwindSafe for Fp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more