mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
fix std/alloc dep for multiscalar_mult for RistrettoPoints
This commit is contained in:
parent
8c3ae7f010
commit
d08c3d252b
1 changed files with 1 additions and 0 deletions
|
|
@ -1011,6 +1011,7 @@ pub mod vartime {
|
||||||
///
|
///
|
||||||
/// A vector of `Scalar`s and a vector of `RistrettoPoints`. It is an
|
/// A vector of `Scalar`s and a vector of `RistrettoPoints`. It is an
|
||||||
/// error to call this function with two vectors of different lengths.
|
/// error to call this function with two vectors of different lengths.
|
||||||
|
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||||
pub fn multiscalar_mult<'a, 'b, I, J>(scalars: I, points: J) -> RistrettoPoint
|
pub fn multiscalar_mult<'a, 'b, I, J>(scalars: I, points: J) -> RistrettoPoint
|
||||||
where I: IntoIterator<Item = &'a Scalar>,
|
where I: IntoIterator<Item = &'a Scalar>,
|
||||||
J: IntoIterator<Item = &'b RistrettoPoint>
|
J: IntoIterator<Item = &'b RistrettoPoint>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue