Function curve25519_dalek::edwards::vartime::multiscalar_mult
[−]
[src]
pub fn multiscalar_mult<'a, 'b, I, J>(scalars: I, points: J) -> EdwardsPoint where
I: IntoIterator<Item = &'a Scalar>,
J: IntoIterator<Item = &'b EdwardsPoint>,
Given an iterable of public scalars and an iterable of public points, compute $$ Q = c_1 P_1 + \cdots + c_n P_n. $$
Input
A iterable of Scalar
s and a iterable of EdwardsPoints
. It is an
error to call this function with two iterators of different lengths.