[−][src]Struct curve25519_dalek::window::LookupTable
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.
XXX make this generic with respect to table size
Methods
impl<T> LookupTable<T> where
T: Identity + ConditionallySelectable + ConditionallyNegatable,
[src]
T: Identity + ConditionallySelectable + ConditionallyNegatable,
Trait Implementations
impl<T: Clone> Clone for LookupTable<T>
[src]
fn clone(&self) -> LookupTable<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for LookupTable<T>
[src]
impl<T: Debug> Debug for LookupTable<T>
[src]
impl<T: Copy + Default> Default for LookupTable<T>
[src]
fn default() -> LookupTable<T>
[src]
impl<'a> From<&'a EdwardsPoint> for LookupTable<ProjectiveNielsPoint>
[src]
fn from(P: &'a EdwardsPoint) -> Self
[src]
impl<'a> From<&'a EdwardsPoint> for LookupTable<AffineNielsPoint>
[src]
fn from(P: &'a EdwardsPoint) -> Self
[src]
impl<T> Zeroize for LookupTable<T> where
T: Copy + Default + Zeroize,
[src]
T: Copy + Default + Zeroize,
Auto Trait Implementations
impl<T> RefUnwindSafe for LookupTable<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for LookupTable<T> where
T: Send,
T: Send,
impl<T> Sync for LookupTable<T> where
T: Sync,
T: Sync,
impl<T> Unpin for LookupTable<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for LookupTable<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,