summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-08-20 00:45:08 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-08-20 00:45:08 +0200
commita40c4006d21d6e553d805da7d1a297bdce42f571 (patch)
treef58944ec948ee5163bad60cdcc5694edc12203ae /sys/include
parentd3f05df5d6839e179222cf691ab9a455044687ea (diff)
libsec: add pbkdf2_hmac_sha1() (from wpapsk factotum module)
Diffstat (limited to 'sys/include')
-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 9a32aa554..60f25f944 100644
--- a/sys/include/libsec.h
+++ b/sys/include/libsec.h
@@ -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);