summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-03-02 22:55:30 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-03-02 22:57:44 +0100
commit7af8e6c65269449cec6b6fd85a1ce6ec92987009 (patch)
treece51f4a5e116debfeee248e457a2c7747d489123
parent8ffe9be8a73903cf9aceb7d01e482e0d00425cbf (diff)
downloadweechat-7af8e6c65269449cec6b6fd85a1ce6ec92987009.zip
core: add minimum libgcypt version 1.7.0 for SHA3 algorithms in comment of function weecrypto_hash
-rw-r--r--src/core/wee-crypto.c14
1 files 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).
*