mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
oops - forgot to switch on pippenger
This commit is contained in:
parent
33b41ac10d
commit
df745e98a2
1 changed files with 8 additions and 4 deletions
|
|
@ -676,11 +676,15 @@ impl VartimeMultiscalarMul for EdwardsPoint {
|
||||||
assert_eq!(s_hi, Some(s_lo));
|
assert_eq!(s_hi, Some(s_lo));
|
||||||
assert_eq!(p_hi, Some(p_lo));
|
assert_eq!(p_hi, Some(p_lo));
|
||||||
|
|
||||||
// Now we know there's a single size. When we do
|
// Now we know there's a single size.
|
||||||
// size-dependent algorithm dispatch, use this as the hint.
|
// Use this as the hint to decide which algorithm to use.
|
||||||
let _size = s_lo;
|
let size = s_lo;
|
||||||
|
|
||||||
scalar_mul::straus::Straus::optional_multiscalar_mul(scalars, points)
|
if size < 190 {
|
||||||
|
scalar_mul::straus::Straus::optional_multiscalar_mul(scalars, points)
|
||||||
|
} else {
|
||||||
|
scalar_mul::pippenger::Pippenger::optional_multiscalar_mul(scalars, points)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue