diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-01 19:15:28 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-01 19:51:50 +0100 |
commit | 93fa0d934b96179847301d3a59d3ca8f71b85f58 (patch) | |
tree | 41a0ee271fe2ef752b9ecccb54d8d458c1ed212b /src/tools | |
parent | curve25519: replace hacl64 with fiat64 (diff) | |
download | wireguard-monolithic-historical-93fa0d934b96179847301d3a59d3ca8f71b85f58.tar.xz wireguard-monolithic-historical-93fa0d934b96179847301d3a59d3ca8f71b85f58.zip |
curve25519: replace fiat64 with faster hacl64
This reverts commit da4ff396cc5d5e0ff21f9ecbc2f951c048c63fff and adds
some optimizations to hacl64.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/curve25519.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/curve25519.c b/src/tools/curve25519.c index 50b95a9..901becd 100644 --- a/src/tools/curve25519.c +++ b/src/tools/curve25519.c @@ -39,11 +39,11 @@ static noinline void memzero_explicit(void *s, size_t count) } #ifdef __SIZEOF_INT128__ -#define CONFIG_ARCH_SUPPORTS_INT128 +#include "../crypto/curve25519-hacl64.h" +#else +#include "../crypto/curve25519-fiat32.h" #endif -#include "../crypto/curve25519-generic.h" - void curve25519_generate_public(uint8_t pub[static CURVE25519_POINT_SIZE], const uint8_t secret[static CURVE25519_POINT_SIZE]) { static const uint8_t basepoint[CURVE25519_POINT_SIZE] = { 9 }; |