Struct curve25519_dalek::backend::serial::u64::scalar::Scalar52 [−][src]
Expand description
The Scalar52
struct represents an element in
\(\mathbb Z / \ell \mathbb Z\) as 5 \(52\)-bit limbs.
Tuple Fields
0: [u64; 5]
Implementations
Unpack a 32 byte / 256 bit scalar into 5 52-bit limbs.
Compute limbs/R
(mod l), where R is the Montgomery modulus 2^260
Compute (a * b) / R
(mod l), where R is the Montgomery modulus 2^260
Compute (a^2) / R
(mod l) in Montgomery form, where R is the Montgomery modulus 2^260
Puts a Scalar52 in to Montgomery form, i.e. computes a*R (mod l)
Takes a Scalar52 out of Montgomery form, i.e. computes a/R (mod l)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Scalar52
impl UnwindSafe for Scalar52
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast(self) -> U
pub fn cast(self) -> U
Numeric cast from self
to T
.
pub fn from_bits(t: T) -> T
pub fn from_bits(t: T) -> T
Safe lossless bitwise transmute from T
to Self
.
pub fn from_cast(t: T) -> T
pub fn from_cast(t: T) -> T
Numeric cast from T
to Self
.
pub fn into_bits(self) -> U
pub fn into_bits(self) -> U
Safe lossless bitwise transmute from self
to T
.