aboutsummaryrefslogtreecommitdiff
path: root/src/util/tweetnacl-gnunet.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-06 14:02:40 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-06 14:02:40 +0100
commit1ad2fb331548adf635e9cff8786b468e54666371 (patch)
tree1eeafe3a8aa5a32ea78ead24fe742110133e0805 /src/util/tweetnacl-gnunet.h
parent2111817ee190b99561f067277c3b081da27e2afa (diff)
downloadgnunet-1ad2fb331548adf635e9cff8786b468e54666371.tar.gz
gnunet-1ad2fb331548adf635e9cff8786b468e54666371.zip
Fix ECDSA/ECDH key exchange
Libgcrypt interprets the private key as little endian, while tweetnacl interprets it as big endian. This caused the key exchange to fail.
Diffstat (limited to 'src/util/tweetnacl-gnunet.h')
-rw-r--r--src/util/tweetnacl-gnunet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/tweetnacl-gnunet.h b/src/util/tweetnacl-gnunet.h
index 239166ffc..2b2dc8e63 100644
--- a/src/util/tweetnacl-gnunet.h
+++ b/src/util/tweetnacl-gnunet.h
@@ -47,4 +47,8 @@ GNUNET_TWEETNACL_sign_detached (uint8_t *sig,
47 const uint8_t *m, 47 const uint8_t *m,
48 uint64_t n, 48 uint64_t n,
49 const uint8_t *sk); 49 const uint8_t *sk);
50
51void
52GNUNET_TWEETNACL_scalarmult_le_ed25519_base (uint8_t *pk, const uint8_t *s);
53
50#endif 54#endif