mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Merge remote-tracking branch 'hdevalence/feature/add-mult-cofactor-fn' into develop
This commit is contained in:
commit
6d2ab84d38
1 changed files with 8 additions and 0 deletions
|
|
@ -635,6 +635,14 @@ impl ExtendedPoint {
|
|||
h
|
||||
}
|
||||
|
||||
/// Multiply by the cofactor: compute `8 * self`.
|
||||
///
|
||||
/// Convenience wrapper around `mult_by_pow_2`.
|
||||
#[inline]
|
||||
pub fn mult_by_cofactor(&self) -> ExtendedPoint {
|
||||
self.mult_by_pow_2(3)
|
||||
}
|
||||
|
||||
/// Compute `2^k * self` by successive doublings.
|
||||
/// Requires `k > 0`.
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Reference in a new issue