aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Crypto/x25519.h
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-08-22 08:47:20 +0200
committerRoopesh Chander <roop@roopc.net>2018-10-27 15:13:01 +0530
commit834c9ae7ce795fe731db4e894f04c121b50ab00f (patch)
tree81c09a362ff6c4c97f1f621b2013bf6b476cca1a /WireGuard/WireGuard/Crypto/x25519.h
parentTunnel creation: Hide 'Exclude private IPs' switch till the feature is ready (diff)
downloadwireguard-apple-834c9ae7ce795fe731db4e894f04c121b50ab00f.tar.xz
wireguard-apple-834c9ae7ce795fe731db4e894f04c121b50ab00f.zip
Crypto: Add key generation functions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/Crypto/x25519.h')
-rw-r--r--WireGuard/WireGuard/Crypto/x25519.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Crypto/x25519.h b/WireGuard/WireGuard/Crypto/x25519.h
new file mode 100644
index 0000000..7d8440d
--- /dev/null
+++ b/WireGuard/WireGuard/Crypto/x25519.h
@@ -0,0 +1,7 @@
+#ifndef X25519_H
+#define X25519_H
+
+void curve25519_derive_public_key(unsigned char public_key[32], const unsigned char private_key[32]);
+void curve25519_generate_private_key(unsigned char private_key[32]);
+
+#endif