diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-27 04:17:54 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-27 15:35:13 -0500 |
commit | 7605b2ab5ea2cdd619fafbe5eea981f689865676 (patch) | |
tree | 1bcd75bfe08fd60fed60a6f2f558ccfa2f8c4a30 /src/crypto/curve25519.c | |
parent | 0e8737b3afe1dc5410b45761b7c9e38e022292f6 (diff) | |
download | wg2nd-7605b2ab5ea2cdd619fafbe5eea981f689865676.tar.xz wg2nd-7605b2ab5ea2cdd619fafbe5eea981f689865676.zip |
Encode key in base32 to exclude the Unix path sep
Diffstat (limited to 'src/crypto/curve25519.c')
-rw-r--r-- | src/crypto/curve25519.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crypto/curve25519.c b/src/crypto/curve25519.c index 7121d1e..2f6f5d6 100644 --- a/src/crypto/curve25519.c +++ b/src/crypto/curve25519.c @@ -79,7 +79,9 @@ static noinline void memzero_explicit(void *s, size_t count) asm volatile("": :"r"(s) : "memory"); } -#ifdef __SIZEOF_INT128__ +#ifdef __EMSCRIPTEN__ +#include "curve25519-fiat32.h" +#elif __SIZEOF_INT128__ #include "curve25519-hacl64.h" #else #include "curve25519-fiat32.h" |