forked from wolfSSL/wolfssl
resolve CB_ONLY cases
This commit is contained in:
@@ -5334,6 +5334,7 @@ static int _ecc_make_key_ex(WC_RNG* rng, int keysize, ecc_key* key,
|
||||
if (err == CRYPTOCB_UNAVAILABLE) {
|
||||
return NO_VALID_DEVID;
|
||||
}
|
||||
return err;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -3179,9 +3179,10 @@ static int wc_RsaFunction_ex(const byte* in, word32 inLen, byte* out,
|
||||
/* fall-through when unavailable and try using software */
|
||||
#endif
|
||||
#ifdef WOLF_CRYPTO_CB_ONLY_RSA
|
||||
if (ret == CRYPTOCB_UNAVAILABLE)
|
||||
if (ret == CRYPTOCB_UNAVAILABLE) {
|
||||
return NO_VALID_DEVID;
|
||||
}
|
||||
return ret;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user