Setup the loopargs array for all jobs, not only for the very first one.
It may fail with "Could not allocate 0 bytes for sig sign loop" and/or will
cause the loop functions to fail silently, because they operate on a NULL
PKEY context when "-async_jobs <n>" is specified.
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/22399)
loopargs[i].kem_rcv_secret[testnum] = rcv_secret;
EVP_PKEY_free(pkey);
pkey = NULL;
- break;
+ continue;
kem_err_break:
ERR_print_errors(bio_err);
loopargs[i].sig_sig[testnum] = sig;
EVP_PKEY_free(pkey);
pkey = NULL;
- break;
+ continue;
sig_err_break:
ERR_print_errors(bio_err);