speed: Correct handling of async_jobs for KEM and signature algos
authorIngo Franzki <ifranzki@linux.ibm.com>
Mon, 16 Oct 2023 12:07:05 +0000 (14:07 +0200)
committerMatt Caswell <matt@openssl.org>
Wed, 25 Oct 2023 08:24:29 +0000 (09:24 +0100)
commitdf5f419b14de9ff47082c42f2a2db6557ceca84f
tree6212f8bc3c3099ede9a38c032f4e3bf5005bbc9e
parent4e09305ee092dea14b7d4feb3fac2889b41428f3
speed: Correct handling of async_jobs for KEM and signature algos

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)
apps/speed.c