Skip to content

Commit 71ca447

Browse files
resolve CB_ONLY cases
1 parent 03a5667 commit 71ca447

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

wolfcrypt/src/ecc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5334,6 +5334,7 @@ static int _ecc_make_key_ex(WC_RNG* rng, int keysize, ecc_key* key,
53345334
if (err == CRYPTOCB_UNAVAILABLE) {
53355335
return NO_VALID_DEVID;
53365336
}
5337+
return err;
53375338
#endif
53385339
#endif
53395340

wolfcrypt/src/rsa.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3179,9 +3179,10 @@ static int wc_RsaFunction_ex(const byte* in, word32 inLen, byte* out,
31793179
/* fall-through when unavailable and try using software */
31803180
#endif
31813181
#ifdef WOLF_CRYPTO_CB_ONLY_RSA
3182-
if (ret == CRYPTOCB_UNAVAILABLE)
3182+
if (ret == CRYPTOCB_UNAVAILABLE) {
31833183
return NO_VALID_DEVID;
31843184
}
3185+
return ret;
31853186
#endif
31863187
#endif
31873188

0 commit comments

Comments
 (0)