mirror of
https://github.com/saymrwulf/anza-cryptography-source.git
synced 2026-09-08 21:00:37 +00:00
* ed25519: add 128-bit NAF path Add Scalar::non_adjacent_form_128 and use it in the serial and vector triple-base verifier paths for scalars known to fit in 128 bits. The helper computes only the HEEA-readable digit range instead of producing a full 256-entry NAF array for each scalar. Benchmark notes: - Ran this repository's Criterion benchmark program, benches/bench.rs, filtering to Single Verification, pinned to CPU 4 with 1s warmup, 2s measurement, and sample size 10. - local_verify_zebra estimate was 19.740 us, with 95% CI 19.686..19.789 us. - master measured 20.051 us, with 95% CI 19.938..20.134 us, so this branch was about 1.55% faster in that run. * Use 128-bit NAF in triple-base paths --------- Co-authored-by: zz-sol <allaboutshop10@163.com> |
||
|---|---|---|
| .. | ||
| serial | ||
| vector | ||
| serial.rs | ||
| vector.rs | ||