aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/embeddable-wg-library/wireguard.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-21 19:19:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-03-02 16:42:29 +0100
commit0e6fe9a5486ca02b5ef6d629645e434429663196 (patch)
treedb2edd6c3b9b8c7d2d27550c9c759f0844300143 /contrib/embeddable-wg-library/wireguard.h
parentcontrib: embedded-wg-library: add ability to add and del interfaces (diff)
downloadwireguard-tools-0e6fe9a5486ca02b5ef6d629645e434429663196.tar.xz
wireguard-tools-0e6fe9a5486ca02b5ef6d629645e434429663196.zip
contrib: embedded-wg-library: add key generation functions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'contrib/embeddable-wg-library/wireguard.h')
-rw-r--r--contrib/embeddable-wg-library/wireguard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/embeddable-wg-library/wireguard.h b/contrib/embeddable-wg-library/wireguard.h
index 350de7d..53d9d5d 100644
--- a/contrib/embeddable-wg-library/wireguard.h
+++ b/contrib/embeddable-wg-library/wireguard.h
@@ -90,5 +90,8 @@ char *wg_list_device_names(void); /* first\0second\0third\0forth\0last\0\0 */
void wg_key_to_base64(wg_key_b64_string base64, const wg_key key);
int wg_key_from_base64(wg_key key, const wg_key_b64_string base64);
bool wg_key_is_zero(const wg_key key);
+void wg_generate_public_key(wg_key public_key, const wg_key private_key);
+void wg_generate_private_key(wg_key private_key);
+void wg_generate_preshared_key(wg_key preshared_key);
#endif