Home GnuPG

kdf: Add One-Step KDF with hash.

Description

kdf: Add One-Step KDF with hash.

* src/gcrypt.h.in (GCRY_KDF_ONESTEP_KDF): New.
* cipher/kdf.c (onestep_kdf_open, onestep_kdf_compute): New.
(onestep_kdf_final): New.
(_gcry_kdf_open, _gcry_kdf_compute, _gcry_kdf_final): Add
GCRY_KDF_ONESTEP_KDF support.
* tests/t-kdf.c (check_onestep_kdf): Add the test.
(main): Call check_onestep_kdf.
  • GnuPG-bug-id: T5964
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 7 2022, 8:47 AM
Parents
rC8d8e80ad7536: Fix for struct gcry_thread_cbs.
Branches
Unknown
Tags
Unknown
Tasks
T5964: gnupg should use the KDFs implemented in libgcrypt