group: Hard-code a w-NAF window size of 4
We were already ignoring the actual bit length of the scalar, and selecting the window size based on the maximum bit length, which effectively hard-coded a window size of 4.
This commit is contained in:
parent
6875667f1d
commit
74c7d4914d
|
@ -417,10 +417,6 @@ impl Curve for Fr {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl WnafGroup for Fr {
|
impl WnafGroup for Fr {
|
||||||
fn recommended_wnaf_for_scalar(_: &Self::Scalar) -> usize {
|
|
||||||
3
|
|
||||||
}
|
|
||||||
|
|
||||||
fn recommended_wnaf_for_num_scalars(_: usize) -> usize {
|
fn recommended_wnaf_for_num_scalars(_: usize) -> usize {
|
||||||
3
|
3
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue