aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/curve25519.c
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-27 04:17:54 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-27 15:35:13 -0500
commit7605b2ab5ea2cdd619fafbe5eea981f689865676 (patch)
tree1bcd75bfe08fd60fed60a6f2f558ccfa2f8c4a30 /src/crypto/curve25519.c
parent0e8737b3afe1dc5410b45761b7c9e38e022292f6 (diff)
downloadwg2nd-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.c4
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"