Home GnuPG

kdf: Improve new KDF API.

Description

kdf: Improve new KDF API.

* cipher/kdf.c (struct argon2_thread_data): Change layout.
(argon2_iterator): Use struct gcry_kdf_pt_head.
(argon2_compute_segment): Rename from argon2_compute_row.
(argon2_open): Handle N_THREAD maximum.
(_gcry_kdf_iterator): Use struct gcry_kdf_pt_head.
(_gcry_kdf_compute_segment): Rename from _gcry_kdf_compute_row.
* src/gcrypt-int.h: Update declarations.
* src/gcrypt.h.in (struct gcry_kdf_pt_head): Expose the data type.
* src/libgcrypt.def, src/libgcrypt.vers: Update.
* src/visibility.c, src/visibility.h: Update.
* tests/t-kdf.c (start_thread, my_kdf_derive): Follow the change.

Details

Provenance
gniibeAuthored on Jan 26 2022, 6:38 AM
Parents
rC5e2d792eb8d9: random: Include sys/random.h when available.
Branches
Unknown
Tags
Unknown
Tasks
T5797: New API for modern password hash function