diff options
| author | Eli Zaretskii | 2024-08-19 17:51:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-19 17:51:50 +0300 |
| commit | fc7581ae2ee9db1e3189b76c66be9cd13f72f004 (patch) | |
| tree | f01e33e951b0a75828e5f90d8d84553176289ee5 /src | |
| parent | 21be5cadaf1e43cf886f38cb14fa25b96d8b551d (diff) | |
| download | emacs-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -6402,7 +6402,9 @@ whole OBJECT. | |||
| 6402 | 6402 | ||
| 6403 | The full list of algorithms can be obtained with `secure-hash-algorithms'. | 6403 | The full list of algorithms can be obtained with `secure-hash-algorithms'. |
| 6404 | 6404 | ||
| 6405 | If BINARY is non-nil, returns a string in binary form. | 6405 | If BINARY is non-nil, returns a string in binary form. In this case, |
| 6406 | the function returns a unibyte string whose length is half the number | ||
| 6407 | of characters it returns when BINARY is nil. | ||
| 6406 | 6408 | ||
| 6407 | Note that MD5 and SHA-1 are not collision resistant and should not be | 6409 | Note that MD5 and SHA-1 are not collision resistant and should not be |
| 6408 | used for anything security-related. For these applications, use one | 6410 | used for anything security-related. For these applications, use one |