]> jfr.im git - irc/atheme/atheme.git/commitdiff
modules/crypto/pbkdf2v2: use PRF macro for default variable
authorAaron Jones <redacted>
Sat, 21 Oct 2017 17:36:58 +0000 (17:36 +0000)
committerAaron Jones <redacted>
Sat, 21 Oct 2017 17:36:58 +0000 (17:36 +0000)
modules/crypto/pbkdf2v2.c

index 6b858c0c38a696fa550510282e510c0c14558111..45bf5ec673f5ae0a734da89d1170ab59d54523cd 100644 (file)
@@ -51,7 +51,7 @@
 
 static const char salt_chars[62] = PBKDF2_FN_BASE62;
 
-static unsigned int pbkdf2v2_digest = 6; /* SHA512 */
+static unsigned int pbkdf2v2_digest = PBKDF2_PRF_HMAC_SHA2_512;
 static unsigned int pbkdf2v2_rounds = PBKDF2_ITERCNT_DEF;
 
 static const char *