aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorPaul Eggert2012-02-10 10:58:48 -0800
committerPaul Eggert2012-02-10 10:58:48 -0800
commit6e6c82a4e687708d5a7a3887f92db45bd74da276 (patch)
tree85dc3105240e84a8cddadb25d572e170fcdbd8bc /src/fns.c
parent78df1fb1d46d556bfc2698ca1802972b13613ba8 (diff)
parentcc26d239af9a82cff079556a1daff4b4bf60eb5c (diff)
downloademacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.tar.gz
emacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.zip
Merge from trunk.
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 b4430292c75..ed4f9d40b59 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -4851,12 +4851,15 @@ guesswork fails. Normally, an error is signaled in such case. */)
4851} 4851}
4852 4852
4853DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0, 4853DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0,
4854 doc: /* Return the secure hash of an OBJECT. 4854 doc: /* Return the secure hash of OBJECT, a buffer or string.
4855ALGORITHM is a symbol: md5, sha1, sha224, sha256, sha384 or sha512. 4855ALGORITHM is a symbol specifying the hash to use:
4856OBJECT is either a string or a buffer. 4856md5, sha1, sha224, sha256, sha384 or sha512.
4857Optional arguments START and END are character positions specifying 4857
4858which portion of OBJECT for computing the hash. If BINARY is non-nil, 4858The two optional arguments START and END are positions specifying for
4859return a string in binary form. */) 4859which part of OBJECT to compute the hash. If nil or omitted, uses the
4860whole OBJECT.
4861
4862If BINARY is non-nil, returns a string in binary form. */)
4860 (Lisp_Object algorithm, Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object binary) 4863 (Lisp_Object algorithm, Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object binary)
4861{ 4864{
4862 return secure_hash (algorithm, object, start, end, Qnil, Qnil, binary); 4865 return secure_hash (algorithm, object, start, end, Qnil, Qnil, binary);