summaryrefslogtreecommitdiff
path: root/sys/include/libsec.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-08-28 12:08:54 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-08-28 12:08:54 +0200
commit0e51046942cb5f7168b24b719761297d100082b0 (patch)
treea5627549ab30e836b4c2075f48f444dbe07654bd /sys/include/libsec.h
parentd8a57c0ae3ebd8da230abf545485cf701ef7df77 (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/libsec.h')
-rw-r--r--sys/include/libsec.h3
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]);