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
+4 -1
View File
@@ -991,6 +991,7 @@ int sha512_test(void)
{
Sha512 sha;
byte hash[SHA512_DIGEST_SIZE];
int ret;
testVector a, b;
testVector test_sha[2];
@@ -1018,7 +1019,9 @@ int sha512_test(void)
test_sha[0] = a;
test_sha[1] = b;
InitSha512(&sha);
ret = InitSha512(&sha);
if (ret != 0)
return -4009;
for (i = 0; i < times; ++i) {
Sha512Update(&sha, (byte*)test_sha[i].input,(word32)test_sha[i].inLen);