aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-03-29 06:26:42 +0000
committerNIIBE Yutaka <[email protected]>2024-03-29 06:26:42 +0000
commit1fa24e2841dda0b9f7661909077955b0eb96e560 (patch)
tree080181f6a7b622a2135a478aba82aabc4ed0462c /common/util.h
parentgpgsm: Allow to add extensions at the --gen-key prompt. (diff)
downloadgnupg-1fa24e2841dda0b9f7661909077955b0eb96e560.tar.gz
gnupg-1fa24e2841dda0b9f7661909077955b0eb96e560.zip
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 <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h6
1 files changed, 6 insertions, 0 deletions
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