diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-01-31 16:53:59 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-01 19:51:50 +0100 |
commit | 6177bdd32d921553343c24e241bb38503746ccad (patch) | |
tree | f1a9ed14e357cd54dc6c0cd00916713d5e764c0a /contrib/examples | |
parent | curve25519: verify that specialized basepoint implementations are correct (diff) | |
download | wireguard-monolithic-historical-6177bdd32d921553343c24e241bb38503746ccad.tar.xz wireguard-monolithic-historical-6177bdd32d921553343c24e241bb38503746ccad.zip |
curve25519: replace hacl64 with fiat64
For now, it's faster:
hacl64: 109782 cycles per call
fiat64: 108984 cycles per call
It's quite possible this commit will be reverted with nice changes from
INRIA, though.
Diffstat (limited to 'contrib/examples')
-rw-r--r-- | contrib/examples/keygen-html/src/curve25519_generate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/examples/keygen-html/src/curve25519_generate.c b/contrib/examples/keygen-html/src/curve25519_generate.c index 8b4bbb3..e7873a6 100644 --- a/contrib/examples/keygen-html/src/curve25519_generate.c +++ b/contrib/examples/keygen-html/src/curve25519_generate.c @@ -48,7 +48,7 @@ static __always_inline void normalize_secret(u8 secret[CURVE25519_POINT_SIZE]) secret[31] |= 64; } -#include "../../../../src/crypto/curve25519-fiat32.h" +#include "../../../../src/crypto/curve25519-generic.h" EMSCRIPTEN_KEEPALIVE void curve25519_generate_public(u8 public[static 32], const u8 private[static 32]) { |