diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-01 21:38:20 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-01 21:38:20 +0200 |
commit | b5737e87262b69fbfd5750a9485de9fc8b5b06dd (patch) | |
tree | 05f84b3cfadcdc841238a964991395620cc85ab1 /sys/include/libsec.h | |
parent | e3a64494e782de289e1c7e12a4b3a2f73e0064e8 (diff) |
libsec: add curve25519 diffie hellman
Diffstat (limited to 'sys/include/libsec.h')
-rw-r--r-- | sys/include/libsec.h | 4 |
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]); |