Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions elliptic-curve/src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,15 @@ where
.map(|(point, scalar)| point * scalar)
.sum()
}

/// Calculates `x1 * k1 + ... + xn * kn`.
///
/// This is equivalent to [`LinearCombination::lincomb`] except
/// that it may leak the value of the points and/or scalars due to
/// variable-time behavior.
fn lincomb_vartime(points_and_scalars: &PointsAndScalars) -> Self {
Self::lincomb(points_and_scalars)
}
}

/// Modular reduction to a non-zero output.
Expand Down