Home GnuPG

kdf: handle errors from thread dispatch/wait functions

Description

kdf: handle errors from thread dispatch/wait functions

* cipher/kdf.c (argon2_compute): Handle failed job dispatch/wait.
* tests/t-kdf.c (pthread_jobs_launch_job)
(wait_all_jobs_completion): Handle errors returned from pthread functions.

This allows thread helpers to return error code, which causes
KDF processing to stop.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jan 28 2022, 7:33 PM
Parents
rC409f69167983: kdf/argon2: use BLAKE2b hash_buffers function instead of _gcry_md_*
Branches
Unknown
Tags
Unknown