pub struct LookupTableRadix32<T>(pub(crate) [T; 16]);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§
Source§impl<T> LookupTableRadix32<T>
impl<T> LookupTableRadix32<T>
Trait Implementations§
Source§impl<T: Clone> Clone for LookupTableRadix32<T>
impl<T: Clone> Clone for LookupTableRadix32<T>
Source§fn clone(&self) -> LookupTableRadix32<T>
fn clone(&self) -> LookupTableRadix32<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for LookupTableRadix32<T>
impl<T: Debug> Debug for LookupTableRadix32<T>
Source§impl<T: Copy + Default> Default for LookupTableRadix32<T>
impl<T: Copy + Default> Default for LookupTableRadix32<T>
Source§fn default() -> LookupTableRadix32<T>
fn default() -> LookupTableRadix32<T>
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a EdwardsPoint> for LookupTableRadix32<AffineNielsPoint>
impl<'a> From<&'a EdwardsPoint> for LookupTableRadix32<AffineNielsPoint>
Source§fn from(P: &'a EdwardsPoint) -> Self
fn from(P: &'a EdwardsPoint) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a EdwardsPoint> for LookupTableRadix32<ProjectiveNielsPoint>
impl<'a> From<&'a EdwardsPoint> for LookupTableRadix32<ProjectiveNielsPoint>
Source§fn from(P: &'a EdwardsPoint) -> Self
fn from(P: &'a EdwardsPoint) -> Self
Converts to this type from the input type.
Source§impl<T> Zeroize for LookupTableRadix32<T>
impl<T> Zeroize for LookupTableRadix32<T>
impl<T: Copy> Copy for LookupTableRadix32<T>
Auto Trait Implementations§
impl<T> Freeze for LookupTableRadix32<T>where
T: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more