mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
std/crypto: use NAF for multi-scalar edwards25519 multiplication
Transforming scalars to non-adjacent form shrinks the number of precomputations down to 8, while still processing 4 bits at a time. However, real-world benchmarks show that the transform is only really useful with large precomputation tables and for batch signature verification. So, do it for batch verification only.
This commit is contained in:
parent
0d9c474ecf
commit
9c2b014ea8
1 changed files with 85 additions and 36 deletions
Loading…
Add table
Add a link
Reference in a new issue