From 7af8e6c65269449cec6b6fd85a1ce6ec92987009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 2 Mar 2020 22:55:30 +0100 Subject: [PATCH] core: add minimum libgcypt version 1.7.0 for SHA3 algorithms in comment of function weecrypto_hash --- src/core/wee-crypto.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/wee-crypto.c b/src/core/wee-crypto.c index 8647b1427..69ce0ba25 100644 --- a/src/core/wee-crypto.c +++ b/src/core/wee-crypto.c @@ -91,10 +91,10 @@ weecrypto_get_hash_algo (const char *hash_algo) * GCRY_MD_SHA256 256 bits == 32 bytes * GCRY_MD_SHA384 384 bits == 48 bytes * GCRY_MD_SHA512 512 bits == 64 bytes - * GCRY_MD_SHA3_224 224 bits == 28 bytes - * GCRY_MD_SHA3_256 256 bits == 32 bytes - * GCRY_MD_SHA3_384 384 bits == 48 bytes - * GCRY_MD_SHA3_512 512 bits == 64 bytes + * GCRY_MD_SHA3_224 224 bits == 28 bytes (libgcrypt ≥ 1.7.0) + * GCRY_MD_SHA3_256 256 bits == 32 bytes (libgcrypt ≥ 1.7.0) + * GCRY_MD_SHA3_384 384 bits == 48 bytes (libgcrypt ≥ 1.7.0) + * GCRY_MD_SHA3_512 512 bits == 64 bytes (libgcrypt ≥ 1.7.0) * * The result hash is stored in "hash" (the buffer must be large enough). * @@ -164,9 +164,9 @@ hash_end: * * The hash size depends on the algorithm, common ones are: * - * GCRY_MD_SHA1 160 bits == 20 bytes - * GCRY_MD_SHA256 256 bits == 32 bytes - * GCRY_MD_SHA512 512 bits == 64 bytes + * GCRY_MD_SHA1 160 bits == 20 bytes + * GCRY_MD_SHA256 256 bits == 32 bytes + * GCRY_MD_SHA512 512 bits == 64 bytes * * The result hash is stored in "hash" (the buffer must be large enough). *