diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-02 11:28:11 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-02 11:28:11 +0200 |
commit | b749f36baa4800e116bea6fcd0abc23c28e7078f (patch) | |
tree | e14d41caa2a00c303c5572e1a417578923dd13f0 /sys/src/libauthsrv | |
parent | 4c52aedfe92da7efe85e3b855855acb94863e084 (diff) |
libsec: generalize pbkdf2_hmac_sha1() to pbkdf2_x() passing the hmac as an argument
Diffstat (limited to 'sys/src/libauthsrv')
-rw-r--r-- | sys/src/libauthsrv/passtokey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libauthsrv/passtokey.c b/sys/src/libauthsrv/passtokey.c index c829b374e..d2867da87 100644 --- a/sys/src/libauthsrv/passtokey.c +++ b/sys/src/libauthsrv/passtokey.c @@ -36,7 +36,7 @@ static void passtoaeskey(uchar *key, char *p) { static char salt[] = "Plan 9 key derivation"; - pbkdf2_hmac_sha1((uchar*)p, strlen(p), (uchar*)salt, sizeof(salt)-1, 9001, key, AESKEYLEN); + pbkdf2_x((uchar*)p, strlen(p), (uchar*)salt, sizeof(salt)-1, 9001, key, AESKEYLEN, hmac_sha1, SHA1dlen); } void |