aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/fns.c b/src/fns.c
index 2c9ce915ae5..1edfe966098 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -4847,12 +4847,15 @@ guesswork fails. Normally, an error is signaled in such case. */)
4847} 4847}
4848 4848
4849DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0, 4849DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0,
4850 doc: /* Return the secure hash of an OBJECT. 4850 doc: /* Return the secure hash of OBJECT, a buffer or string.
4851ALGORITHM is a symbol: md5, sha1, sha224, sha256, sha384 or sha512. 4851ALGORITHM is a symbol specifying the hash to use:
4852OBJECT is either a string or a buffer. 4852md5, sha1, sha224, sha256, sha384 or sha512.
4853Optional arguments START and END are character positions specifying 4853
4854which portion of OBJECT for computing the hash. If BINARY is non-nil, 4854The two optional arguments START and END are positions specifying for
4855return a string in binary form. */) 4855which part of OBJECT to compute the hash. If nil or omitted, uses the
4856whole OBJECT.
4857
4858If BINARY is non-nil, returns a string in binary form. */)
4856 (Lisp_Object algorithm, Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object binary) 4859 (Lisp_Object algorithm, Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object binary)
4857{ 4860{
4858 return secure_hash (algorithm, object, start, end, Qnil, Qnil, binary); 4861 return secure_hash (algorithm, object, start, end, Qnil, Qnil, binary);