SHA512 fips mode

This commit is contained in:
toddouska
2014-03-27 14:03:12 -07:00
parent 74a6916606
commit e873d7998b
13 changed files with 71 additions and 21 deletions

View File

@@ -302,7 +302,9 @@ int PKCS12_PBKDF(byte* output, const byte* passwd, int passLen,const byte* salt,
else if (hashType == SHA512) {
Sha512 sha512;
InitSha512(&sha512);
ret = InitSha512(&sha512);
if (ret != 0)
break;
Sha512Update(&sha512, buffer, totalLen);
Sha512Final(&sha512, Ai);