forked from wolfSSL/wolfssl
RSA fips mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user