pub struct Fn(pub [u64; 4]);Expand description
The P-256 scalar ring, Z/nZ where n is the order of the base point.
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; 4]Implementations§
Trait Implementations§
impl Copy for Fn
impl Eq for Fn
Source§impl Field for Fn
impl Field for Fn
Source§const BYTE_LEN: usize = 32
const BYTE_LEN: usize = 32
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 Fn
Auto Trait Implementations§
impl Freeze for Fn
impl RefUnwindSafe for Fn
impl Send for Fn
impl Sync for Fn
impl Unpin for Fn
impl UnsafeUnpin for Fn
impl UnwindSafe for Fn
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