this is a portable version of curve25519() by google.
This commit is contained in:
cinap_lenrek 2015-08-28 12:08:54 +02:00
parent d8a57c0ae3
commit 0e51046942
3 changed files with 574 additions and 0 deletions

View file

@ -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]);