Commit 14b4c1f
committed
Use Ed25519ScalarOps instead of BigIntegerScalarOps
Before:
0.534 each sign, 2.3272 each verify, 2.8612 s+v
After:
0.5888 each sign, 2.3566 each verify, 2.9454 s+v
Sign uses reduce() twice, verify uses it once. Therefore the ref10 version is
about 28us slower than the BigInteger version. Basically negligible, so the
important factor to determine is whether the BigInteger operations used are
constant time. If we can't get the ref10 version to be constant time, we may as
well use the BigInteger version.1 parent 4625342 commit 14b4c1f
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
| 31 | + | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
0 commit comments