diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-02 11:30:17 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-02 11:30:17 +0200 |
commit | 7ed22aaeec7a09f2215d08003e2e5c824f903d5d (patch) | |
tree | db47c1b5071849b751a30cfcc060d6a01bb5e83c /sys/include | |
parent | b749f36baa4800e116bea6fcd0abc23c28e7078f (diff) |
libsec: add rfc5869 hmac-based key derivation function hkdf_x()
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/libsec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/include/libsec.h b/sys/include/libsec.h index e46180829..d5c3b85fb 100644 --- a/sys/include/libsec.h +++ b/sys/include/libsec.h @@ -464,3 +464,8 @@ void curve25519_dh_finish(uchar x[32], uchar y[32], uchar z[32]); /* password-based key derivation function 2 (rfc2898) */ void pbkdf2_x(uchar *p, ulong plen, uchar *s, ulong slen, ulong rounds, uchar *d, ulong dlen, DigestState* (*x)(uchar*, ulong, uchar*, ulong, uchar*, DigestState*), int xlen); + +/* hmac-based key derivation function (rfc5869) */ +void hkdf_x(uchar *salt, ulong nsalt, uchar *info, ulong ninfo, uchar *key, ulong nkey, uchar *d, ulong dlen, + DigestState* (*x)(uchar*, ulong, uchar*, ulong, uchar*, DigestState*), int xlen); + |