diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-06-08 13:34:17 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-06-08 13:34:17 +0900 |
commit | 6d32bf80846a22568575a101a3fe6769ab058bb9 (patch) | |
tree | abd29130c023c8db89bc8b4fe5446d5aa24566df /src | |
parent | f8c983cb14f8ba0921ce8fa52ea3519feae07861 (diff) | |
download | libgcrypt-6d32bf80846a22568575a101a3fe6769ab058bb9.tar.gz |
kdf: Add support for One-Step KDF with MAC.
* src/gcrypt.h.in (GCRY_KDF_ONESTEP_KDF_MAC): New.
* cipher/kdf.c (onestep_kdf_mac_open, onestep_kdf_mac_compute): New.
(onestep_kdf_mac_final, onestep_kdf_mac_close): New.
(_gcry_kdf_open, _gcry_kdf_compute, _gcry_kdf_final, _gcry_kdf_close):
Add support for GCRY_KDF_ONESTEP_KDF_MAC.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/gcrypt.h.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in index 5879acaf..809848b7 100644 --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -1602,8 +1602,7 @@ enum gcry_kdf_algos * "One-Step Key Derivation". */ GCRY_KDF_ONESTEP_KDF = 96, /* One-Step Key Derivation with hash */ - /* One-Step Key Derivation with HMAC */ - /* One-Step Key Derivation with KMAC */ + GCRY_KDF_ONESTEP_KDF_MAC = 97, /* One-Step Key Derivation with MAC */ /* Two-Step Key Derivation with HMAC */ /* Two-Step Key Derivation with CMAC */ /* KDF PRF in SP 800-108r1 */ |