aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-08-19 17:51:50 +0300
committerEli Zaretskii2024-08-19 17:51:50 +0300
commitfc7581ae2ee9db1e3189b76c66be9cd13f72f004 (patch)
treef01e33e951b0a75828e5f90d8d84553176289ee5 /src
parent21be5cadaf1e43cf886f38cb14fa25b96d8b551d (diff)
downloademacs-fc7581ae2ee9db1e3189b76c66be9cd13f72f004.tar.gz
emacs-fc7581ae2ee9db1e3189b76c66be9cd13f72f004.zip
; Fix documentation of secure-hash functions
* src/fns.c (Fsecure_hash): * doc/lispref/text.texi (Checksum/Hash): * lisp/subr.el (sha1): Fix documentation wrt to the number of bytes 'secure-hash' and its variants return when BINARY is non-nil. Reported by Pip Cet <pipcet@protonmail.com>.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index cb3e25811ea..6133c20573a 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -6402,7 +6402,9 @@ whole OBJECT.
6402 6402
6403The full list of algorithms can be obtained with `secure-hash-algorithms'. 6403The full list of algorithms can be obtained with `secure-hash-algorithms'.
6404 6404
6405If BINARY is non-nil, returns a string in binary form. 6405If BINARY is non-nil, returns a string in binary form. In this case,
6406the function returns a unibyte string whose length is half the number
6407of characters it returns when BINARY is nil.
6406 6408
6407Note that MD5 and SHA-1 are not collision resistant and should not be 6409Note that MD5 and SHA-1 are not collision resistant and should not be
6408used for anything security-related. For these applications, use one 6410used for anything security-related. For these applications, use one