SHA-256 fips mode

This commit is contained in:
toddouska
2014-03-25 17:11:15 -07:00
parent 18d178f325
commit d5be4c4663
16 changed files with 118 additions and 37 deletions

View File

@@ -286,7 +286,9 @@ int PKCS12_PBKDF(byte* output, const byte* passwd, int passLen,const byte* salt,
else if (hashType == SHA256) {
Sha256 sha256;
InitSha256(&sha256);
ret = InitSha256(&sha256);
if (ret != 0)
break;
Sha256Update(&sha256, buffer, totalLen);
Sha256Final(&sha256, Ai);