libsec: add pbkdf2_hmac_sha1() (from wpapsk factotum module)

This commit is contained in:
cinap_lenrek 2015-08-20 00:45:08 +02:00
parent d3f05df5d6
commit a40c4006d2
4 changed files with 34 additions and 27 deletions

View file

@ -456,3 +456,6 @@ mpint* dh_new(DHstate *dh, mpint *p, mpint *g);
/* calculate shared key: k = pub ^ x % p */
mpint* dh_finish(DHstate *dh, mpint *pub);
/* 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);