aboutsummaryrefslogtreecommitdiff
path: root/lib/std/reset_event.zig
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2020-11-14 23:54:50 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-11-17 17:07:32 -0800
commit9c2b014ea82fdfbb4b46ce789898623be450cca5 (patch)
treeff302856c34987cb8833d6324b76bbe5e1e039dd /lib/std/reset_event.zig
parent0d9c474ecfaf58698774022211d06da97d2fd648 (diff)
downloadzig-9c2b014ea82fdfbb4b46ce789898623be450cca5.tar.gz
zig-9c2b014ea82fdfbb4b46ce789898623be450cca5.zip
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.
Diffstat (limited to 'lib/std/reset_event.zig')
0 files changed, 0 insertions, 0 deletions