Struct curve25519_dalek::window::LookupTable [−][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; 8]
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
impl<'a> From<&'a EdwardsPoint> for LookupTable<CachedPoint>
This is supported on target feature avx2
and non-target feature avx512ifma
and crate feature simd_backend
and (target features avx2
or avx512ifma
) only.
impl<'a> From<&'a EdwardsPoint> for LookupTable<CachedPoint>
avx2
and non-target feature avx512ifma
and crate feature simd_backend
and (target features avx2
or avx512ifma
) only.Performs the conversion.
impl<'a> From<&'a EdwardsPoint> for LookupTable<CachedPoint>
This is supported on crate feature simd_backend
and (target features avx2
or avx512ifma
) and target feature avx512ifma
only.
impl<'a> From<&'a EdwardsPoint> for LookupTable<CachedPoint>
simd_backend
and (target features avx2
or avx512ifma
) and target feature avx512ifma
only.Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for LookupTable<T> where
T: RefUnwindSafe,
impl<T> Send for LookupTable<T> where
T: Send,
impl<T> Sync for LookupTable<T> where
T: Sync,
impl<T> Unpin for LookupTable<T> where
T: Unpin,
impl<T> UnwindSafe for LookupTable<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
.