From b5737e87262b69fbfd5750a9485de9fc8b5b06dd Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 1 Sep 2015 21:38:20 +0200 Subject: libsec: add curve25519 diffie hellman --- sys/include/libsec.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/include/libsec.h') 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]); -- cgit v1.2.3