Struct curve25519_dalek::window::LookupTableRadix32 [−][src]
Expand description
A lookup table of precomputed multiples of a point \(P\), used to compute \( xP \) for \( -8 \leq x \leq 8 \).
The computation of \( xP \) is done in constant time by the select
function.
Since LookupTable
does not implement Index
, it’s more difficult
to accidentally use the table directly. Unfortunately the table is
only pub(crate)
so that we can write hardcoded constants, so it’s
still technically possible. It would be nice to prevent direct
access to the table.
Tuple Fields
0: [T; 16]
Implementations
impl<T> LookupTableRadix32<T> where
T: Identity + ConditionallySelectable + ConditionallyNegatable,
impl<T> LookupTableRadix32<T> where
T: Identity + ConditionallySelectable + ConditionallyNegatable,
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for LookupTableRadix32<T> where
T: RefUnwindSafe,
impl<T> Send for LookupTableRadix32<T> where
T: Send,
impl<T> Sync for LookupTableRadix32<T> where
T: Sync,
impl<T> Unpin for LookupTableRadix32<T> where
T: Unpin,
impl<T> UnwindSafe for LookupTableRadix32<T> where
T: UnwindSafe,
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
.