resolve CB_ONLY cases

This commit is contained in:
JacobBarthelmeh
2023-05-09 09:08:32 -07:00
parent 03a566791e
commit 71ca447b6b
2 changed files with 3 additions and 1 deletions

View File

@@ -5334,6 +5334,7 @@ static int _ecc_make_key_ex(WC_RNG* rng, int keysize, ecc_key* key,
if (err == CRYPTOCB_UNAVAILABLE) { if (err == CRYPTOCB_UNAVAILABLE) {
return NO_VALID_DEVID; return NO_VALID_DEVID;
} }
return err;
#endif #endif
#endif #endif

View File

@@ -3179,9 +3179,10 @@ static int wc_RsaFunction_ex(const byte* in, word32 inLen, byte* out,
/* fall-through when unavailable and try using software */ /* fall-through when unavailable and try using software */
#endif #endif
#ifdef WOLF_CRYPTO_CB_ONLY_RSA #ifdef WOLF_CRYPTO_CB_ONLY_RSA
if (ret == CRYPTOCB_UNAVAILABLE) if (ret == CRYPTOCB_UNAVAILABLE) {
return NO_VALID_DEVID; return NO_VALID_DEVID;
} }
return ret;
#endif #endif
#endif #endif