Home GnuPG

kdf: Add HKDF of RFC5869.

Description

kdf: Add HKDF of RFC5869.

* src/gcrypt.h.in (GCRY_KDF_HKDF): New.
* cipher/kdf.c (hkdf_open, hkdf_compute, hkdf_final, hkdf_close): New.
(_gcry_kdf_open, _gcry_kdf_compute, _gcry_kdf_final, _gcry_kdf_close):
Handle GCRY_KDF_HKDF.
* tests/t-kdf.c (check_hkdf): New.  Test vectors from RFC5869.
(main): Call check_hkdf.
  • GnuPG-bug-id: T5964
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>