Software /
code /
prosody
Changeset
9967:dc9bb31cbffe
util.hashes: Rename PBKDF2 function
It's not SCRAM-specific
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 13 Jan 2019 13:57:18 +0100 |
parents | 9966:9f1c5ae8d70b |
children | 9968:d536796a305f |
files | util-src/hashes.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/hashes.c Fri Apr 19 13:24:32 2019 +0200 +++ b/util-src/hashes.c Sun Jan 13 13:57:18 2019 +0100 @@ -99,7 +99,7 @@ MAKE_HMAC_FUNCTION(Lhmac_sha512, EVP_sha512, SHA512_DIGEST_LENGTH, SHA512_CTX) MAKE_HMAC_FUNCTION(Lhmac_md5, EVP_md5, MD5_DIGEST_LENGTH, MD5_CTX) -static int LscramHi(lua_State *L) { +static int Lpbkdf2_sha1(lua_State *L) { unsigned char out[SHA_DIGEST_LENGTH]; size_t pass_len, salt_len; @@ -127,7 +127,8 @@ { "hmac_sha256", Lhmac_sha256 }, { "hmac_sha512", Lhmac_sha512 }, { "hmac_md5", Lhmac_md5 }, - { "scram_Hi_sha1", LscramHi }, + { "scram_Hi_sha1", Lpbkdf2_sha1 }, /* COMPAT */ + { "pbkdf2_hmac_sha1", Lpbkdf2_sha1 }, { NULL, NULL } };