Home GnuPG

kdf: Change new KDF API.

Description

kdf: Change new KDF API.

* cipher/kdf.c (argon2_ctl): Remove.
(argon2_iterator): Remove.
(argon2_compute_segment): Change the API.
(argon2_compute): New.
(argon2_open): No optional N_THERADS any more.
(_gcry_kdf_ctl): Remove.
(_gcry_kdf_iterator, _gcry_kdf_compute_segment): Remove.
(_gcry_kdf_compute): New.
* src/gcrypt-int.h: Update declarations.
* src/gcrypt.h.in: Likewise.
* src/libgcrypt.def: Update.
* src/libgcrypt.vers: Update.
* src/visibility.c: Update.
* src/visibility.h: Update.
* tests/t-kdf.c (check_argon2): Update the test with change of new
API.
  • GnuPG-bug-id: T5797
  • Co-authored-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jan 28 2022, 9:00 AM
Parents
rC4cbbd87e2af0: kdf: Implement Argon2 KDF using blake2b_vl_hash function.
Branches
Unknown
Tags
Unknown
Tasks
T5797: New API for modern password hash function