aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorJoakim Verona2012-02-15 15:12:49 +0100
committerJoakim Verona2012-02-15 15:12:49 +0100
commit02db17e53bf46c91b2cb8ee33b43d8ae252a1681 (patch)
treefcafa961e884648e15524130f1dbca55dc7093d0 /src/fns.c
parent736ab04e2752e7c3c5b5070a0d62279dcfb12b27 (diff)
parent1deeb569b1247db4c0b2eea4906a9e53e5ee7e99 (diff)
downloademacs-02db17e53bf46c91b2cb8ee33b43d8ae252a1681.tar.gz
emacs-02db17e53bf46c91b2cb8ee33b43d8ae252a1681.zip
upstream
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);