Struct curve25519_dalek::scalar::UnpackedScalar
[−]
[src]
pub struct UnpackedScalar(pub [i64; 12]);
The UnpackedScalar
struct represents an element in ℤ/lℤ as 12
21-bit limbs.
Methods
impl UnpackedScalar
[src]
fn zero() -> UnpackedScalar
[src]
Return the zero scalar.
fn one() -> UnpackedScalar
[src]
Return the one scalar.
fn invert(&self) -> UnpackedScalar
[src]
Compute the multiplicative inverse of this scalar.
fn square(&self) -> UnpackedScalar
[src]
Compute a^2 (mod l)
.
fn multiply_add(
a: &UnpackedScalar,
b: &UnpackedScalar,
c: &UnpackedScalar
) -> UnpackedScalar
[src]
a: &UnpackedScalar,
b: &UnpackedScalar,
c: &UnpackedScalar
) -> UnpackedScalar
Compute ab+c (mod l)
.
Trait Implementations
impl Copy for UnpackedScalar
[src]
impl Clone for UnpackedScalar
[src]
fn clone(&self) -> UnpackedScalar
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Index<usize> for UnpackedScalar
[src]
type Output = i64
The returned type after indexing.
fn index(&self, _index: usize) -> &i64
[src]
Performs the indexing (container[index]
) operation.