summaryrefslogtreecommitdiff
path: root/sys/include/libsec.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-09-01 21:38:20 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-09-01 21:38:20 +0200
commitb5737e87262b69fbfd5750a9485de9fc8b5b06dd (patch)
tree05f84b3cfadcdc841238a964991395620cc85ab1 /sys/include/libsec.h
parente3a64494e782de289e1c7e12a4b3a2f73e0064e8 (diff)
libsec: add curve25519 diffie hellman
Diffstat (limited to 'sys/include/libsec.h')
-rw-r--r--sys/include/libsec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/libsec.h b/sys/include/libsec.h
index d275d6d47..38d8a67c5 100644
--- a/sys/include/libsec.h
+++ b/sys/include/libsec.h
@@ -459,3 +459,7 @@ void pbkdf2_hmac_sha1(uchar *p, ulong plen, uchar *s, ulong slen, ulong rounds,
/* Curve25519 elliptic curve, public key function */
void curve25519(uchar mypublic[32], uchar secret[32], uchar basepoint[32]);
+
+/* Curve25519 diffie hellman */
+void curve25519_dh_new(uchar x[32], uchar y[32]);
+void curve25519_dh_finish(uchar x[32], uchar y[32], uchar z[32]);