From 1fa24e2841dda0b9f7661909077955b0eb96e560 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 29 Mar 2024 15:26:42 +0900 Subject: common: Add KMAC. * common/Makefile.am (common_sources): Add kmac.c. * common/kmac.c: New. * common/util.h (compute_kmac256): New. -- Signed-off-by: NIIBE Yutaka --- common/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/util.h') diff --git a/common/util.h b/common/util.h index 851b392a5..7948b5d82 100644 --- a/common/util.h +++ b/common/util.h @@ -299,6 +299,12 @@ char *gnupg_get_help_string (const char *key, int only_current_locale); /*-- localename.c --*/ const char *gnupg_messages_locale_name (void); +/*-- kmac.c --*/ +gpg_error_t compute_kmac256 (void *digest, size_t digestlen, + const void *key, size_t keylen, + const void *custom, size_t customlen, + gcry_buffer_t *data_iov, int data_iovlen); + /*-- miscellaneous.c --*/ /* This function is called at startup to tell libgcrypt to use our own -- cgit v1.2.3