mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-03 20:13:48 +00:00
perf: use width-8 NAF for static scalars to match NafLookupTable8 (#848)
This commit is contained in:
parent
aaff294bfa
commit
0a09c4ebb1
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ impl VartimePrecomputedMultiscalarMul for VartimePrecomputedStraus {
|
|||
{
|
||||
let static_nafs = static_scalars
|
||||
.into_iter()
|
||||
.map(|c| c.borrow().non_adjacent_form(5))
|
||||
.map(|c| c.borrow().non_adjacent_form(8))
|
||||
.collect::<Vec<_>>();
|
||||
let dynamic_nafs: Vec<_> = dynamic_scalars
|
||||
.into_iter()
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ pub mod spec {
|
|||
{
|
||||
let static_nafs = static_scalars
|
||||
.into_iter()
|
||||
.map(|c| c.borrow().non_adjacent_form(5))
|
||||
.map(|c| c.borrow().non_adjacent_form(8))
|
||||
.collect::<Vec<_>>();
|
||||
let dynamic_nafs: Vec<_> = dynamic_scalars
|
||||
.into_iter()
|
||||
|
|
|
|||
Loading…
Reference in a new issue