diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-28 12:08:54 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-28 12:08:54 +0200 |
commit | 0e51046942cb5f7168b24b719761297d100082b0 (patch) | |
tree | a5627549ab30e836b4c2075f48f444dbe07654bd /sys/include | |
parent | d8a57c0ae3ebd8da230abf545485cf701ef7df77 (diff) |
libsec: add curve25519() from http://code.google.com/p/curve25519-donna/
this is a portable version of curve25519() by google.
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/libsec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/libsec.h b/sys/include/libsec.h index e4d80bd4b..9a6a6a54c 100644 --- a/sys/include/libsec.h +++ b/sys/include/libsec.h @@ -460,3 +460,6 @@ mpint* dh_finish(DHstate *dh, mpint *y); /* password-based key derivation function 2 (RFC 2898) */ void pbkdf2_hmac_sha1(uchar *p, ulong plen, uchar *s, ulong slen, ulong rounds, uchar *d, ulong dlen); + +/* Curve25519 elliptic curve, public key function */ +void curve25519(uchar mypublic[32], uchar secret[32], uchar basepoint[32]); |