Function curve25519_dalek::curve::vartime::k_fold_scalar_mult
[−]
[src]
pub fn k_fold_scalar_mult<'a, 'b, I, J>(scalars: I, points: J) -> ExtendedPoint where
I: IntoIterator<Item = &'a Scalar>,
J: IntoIterator<Item = &'b ExtendedPoint>,
Given a vector of public scalars and a vector of (possibly secret) points, compute
c_1 P_1 + ... + c_n P_n.
Input
A vector of Scalar
s and a vector of ExtendedPoints
. It is an
error to call this function with two vectors of different lengths.