RSA fips mode

This commit is contained in:
toddouska
2014-04-01 13:08:48 -07:00
parent 348f50b4b1
commit c210600d93
11 changed files with 126 additions and 46 deletions

View File

@@ -461,9 +461,7 @@ int CRYPT_RSA_Initialize(CRYPT_RSA_CTX* rsa)
if (rsa->holder == NULL)
return -1;
InitRsaKey((RsaKey*)rsa->holder, NULL);
return 0;
return InitRsaKey((RsaKey*)rsa->holder, NULL);
}

View File

@@ -1219,8 +1219,9 @@ static int check_rsa(void)
byte out1[256];
byte out2[256];
InitRsaKey(&defRsa, NULL);
ret = CRYPT_RSA_Initialize(&mcRsa);
ret = InitRsaKey(&defRsa, NULL);
if (ret == 0)
ret = CRYPT_RSA_Initialize(&mcRsa);
if (ret != 0) {
printf("mcapi rsa init failed\n");
return -1;