Type Alias ring::ec::suite_b::ops::Scalar

source ·
pub type Scalar<E = Unencoded> = Elem<N, E>;
Expand description

A scalar. Its value is in [0, n). Zero-valued scalars are forbidden in most contexts.

Aliased Type§

struct Scalar<E = Unencoded> {
    pub(super) limbs: [u64; 6],
    pub(super) m: PhantomData<N>,
    pub(super) encoding: PhantomData<E>,
}

Fields§

§limbs: [u64; 6]§m: PhantomData<N>

The modulus m for the ring ℤ/mℤ for which this element is a value.

§encoding: PhantomData<E>

The number of Montgomery factors that need to be canceled out from value to get the actual value.