[][src]Struct curve25519_dalek::edwards::VartimeEdwardsPrecomputation

pub struct VartimeEdwardsPrecomputation(VartimePrecomputedStraus);

Precomputation for variable-time multiscalar multiplication with EdwardsPoints.

Trait Implementations

impl VartimePrecomputedMultiscalarMul for VartimeEdwardsPrecomputation[src]

type Point = EdwardsPoint

The type of point to be multiplied, e.g., RistrettoPoint.

fn vartime_multiscalar_mul<I>(&self, static_scalars: I) -> Self::Point where
    I: IntoIterator,
    I::Item: Borrow<Scalar>, 
[src]

Given static_scalars, an iterator of public scalars (b_i), compute $$ Q = b_1 B_1 + \cdots + b_m B_m, $$ where the (B_j) are the points that were supplied to new. Read more

fn vartime_mixed_multiscalar_mul<I, J, K>(
    &self,
    static_scalars: I,
    dynamic_scalars: J,
    dynamic_points: K
) -> Self::Point where
    I: IntoIterator,
    I::Item: Borrow<Scalar>,
    J: IntoIterator,
    J::Item: Borrow<Scalar>,
    K: IntoIterator,
    K::Item: Borrow<Self::Point>, 
[src]

Given static_scalars, an iterator of public scalars (b_i), dynamic_scalars, an iterator of public scalars (a_i), and dynamic_points, an iterator of points (A_i), compute $$ Q = a_1 A_1 + \cdots + a_n A_n + b_1 B_1 + \cdots + b_m B_m, $$ where the (B_j) are the points that were supplied to new. Read more

Auto Trait Implementations

impl Send for VartimeEdwardsPrecomputation

impl Sync for VartimeEdwardsPrecomputation

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> FromCast<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromBits<T> for T

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self