forked from wolfSSL/wolfssl
Fix for WC_ECC_NONBLOCK_ONLY
case to also check WC_ECC_NONBLOCK
.
This commit is contained in:
@ -4913,7 +4913,7 @@ int wc_ecc_sign_hash_ex(const byte* in, word32 inlen, WC_RNG* rng,
|
|||||||
#else
|
#else
|
||||||
mp_int* sign_k = NULL;
|
mp_int* sign_k = NULL;
|
||||||
#endif
|
#endif
|
||||||
#ifdef WC_ECC_NONBLOCK_ONLY
|
#if defined(WC_ECC_NONBLOCK) && defined(WC_ECC_NONBLOCK_ONLY)
|
||||||
/* perform blocking call to non-blocking function */
|
/* perform blocking call to non-blocking function */
|
||||||
ecc_nb_ctx_t nb_ctx;
|
ecc_nb_ctx_t nb_ctx;
|
||||||
XMEMSET(&nb_ctx, 0, sizeof(nb_ctx));
|
XMEMSET(&nb_ctx, 0, sizeof(nb_ctx));
|
||||||
@ -6028,7 +6028,7 @@ int wc_ecc_verify_hash_ex(mp_int *r, mp_int *s, const byte* hash,
|
|||||||
&& key->asyncDev.marker != WOLFSSL_ASYNC_MARKER_ECC
|
&& key->asyncDev.marker != WOLFSSL_ASYNC_MARKER_ECC
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
#ifdef WC_ECC_NONBLOCK_ONLY
|
#if defined(WC_ECC_NONBLOCK) && defined(WC_ECC_NONBLOCK_ONLY)
|
||||||
/* perform blocking call to non-blocking function */
|
/* perform blocking call to non-blocking function */
|
||||||
ecc_nb_ctx_t nb_ctx;
|
ecc_nb_ctx_t nb_ctx;
|
||||||
XMEMSET(&nb_ctx, 0, sizeof(nb_ctx));
|
XMEMSET(&nb_ctx, 0, sizeof(nb_ctx));
|
||||||
|
Reference in New Issue
Block a user