pwdbased warning changes, submitted by Kevin Baca

This commit is contained in:
Todd A Ouska 2011-07-12 13:51:39 -07:00
parent 4efb856de2
commit c194dc87af

View File

@ -128,7 +128,7 @@ int PBKDF2(byte* output, const byte* passwd, int pLen, const byte* salt,
/* encode i */ /* encode i */
for (j = 0; j < 4; j++) { for (j = 0; j < 4; j++) {
byte b = i >> ((3-j) * 8); byte b = (byte)(i >> ((3-j) * 8));
HmacUpdate(&hmac, &b, 1); HmacUpdate(&hmac, &b, 1);
} }
HmacFinal(&hmac, buffer); HmacFinal(&hmac, buffer);