Skip to content

Commit

Permalink
Fixed async test for test.c deterministic K.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan garske committed Jul 1, 2024
1 parent b5b0e17 commit c07e7f1
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -29155,7 +29155,7 @@ static wc_test_ret_t ecc_test_deterministic_k(WC_RNG* rng)
sigSz = sizeof(sig);
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29180,7 +29180,7 @@ static wc_test_ret_t ecc_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash(sig, sigSz,
Expand All @@ -29207,7 +29207,7 @@ static wc_test_ret_t ecc_test_deterministic_k(WC_RNG* rng)
sigSz = sizeof(sig);
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29232,7 +29232,7 @@ static wc_test_ret_t ecc_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash(sig, sigSz,
Expand All @@ -29259,7 +29259,7 @@ static wc_test_ret_t ecc_test_deterministic_k(WC_RNG* rng)
sigSz = sizeof(sig);
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29284,7 +29284,7 @@ static wc_test_ret_t ecc_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash(sig, sigSz,
Expand Down Expand Up @@ -29409,7 +29409,7 @@ static wc_test_ret_t ecc384_test_deterministic_k(WC_RNG* rng)

do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash_ex(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29430,7 +29430,7 @@ static wc_test_ret_t ecc384_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash_ex(r, s,
Expand All @@ -29456,7 +29456,7 @@ static wc_test_ret_t ecc384_test_deterministic_k(WC_RNG* rng)

do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash_ex(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29477,7 +29477,7 @@ static wc_test_ret_t ecc384_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash_ex(r, s,
Expand All @@ -29503,7 +29503,7 @@ static wc_test_ret_t ecc384_test_deterministic_k(WC_RNG* rng)

do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash_ex(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29524,7 +29524,7 @@ static wc_test_ret_t ecc384_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash_ex(r, s,
Expand Down Expand Up @@ -29669,7 +29669,7 @@ static wc_test_ret_t ecc521_test_deterministic_k(WC_RNG* rng)

do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash_ex(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29690,7 +29690,7 @@ static wc_test_ret_t ecc521_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash_ex(r, s,
Expand All @@ -29716,7 +29716,7 @@ static wc_test_ret_t ecc521_test_deterministic_k(WC_RNG* rng)

do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash_ex(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29737,7 +29737,7 @@ static wc_test_ret_t ecc521_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash_ex(r, s,
Expand All @@ -29763,7 +29763,7 @@ static wc_test_ret_t ecc521_test_deterministic_k(WC_RNG* rng)

do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_sign_hash_ex(hash, wc_HashGetDigestSize(hashType),
Expand All @@ -29784,7 +29784,7 @@ static wc_test_ret_t ecc521_test_deterministic_k(WC_RNG* rng)
verify = 0;
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, key.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
#endif
if (ret == 0)
ret = wc_ecc_verify_hash_ex(r, s,
Expand Down

0 comments on commit c07e7f1

Please sign in to comment.