perf: use width-8 NAF for static scalars to match NafLookupTable8 (#848)

This commit is contained in:
GarmashAlex 2025-12-27 18:41:19 +03:00 committed by GitHub
parent aaff294bfa
commit 0a09c4ebb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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()