diff options
| author | Paul Eggert | 2012-02-10 10:58:48 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-02-10 10:58:48 -0800 |
| commit | 6e6c82a4e687708d5a7a3887f92db45bd74da276 (patch) | |
| tree | 85dc3105240e84a8cddadb25d572e170fcdbd8bc /src/fns.c | |
| parent | 78df1fb1d46d556bfc2698ca1802972b13613ba8 (diff) | |
| parent | cc26d239af9a82cff079556a1daff4b4bf60eb5c (diff) | |
| download | emacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.tar.gz emacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.zip | |
Merge from trunk.
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 15 |
1 files changed, 9 insertions, 6 deletions
| @@ -4851,12 +4851,15 @@ guesswork fails. Normally, an error is signaled in such case. */) | |||
| 4851 | } | 4851 | } |
| 4852 | 4852 | ||
| 4853 | DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0, | 4853 | DEFUN ("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. |
| 4855 | ALGORITHM is a symbol: md5, sha1, sha224, sha256, sha384 or sha512. | 4855 | ALGORITHM is a symbol specifying the hash to use: |
| 4856 | OBJECT is either a string or a buffer. | 4856 | md5, sha1, sha224, sha256, sha384 or sha512. |
| 4857 | Optional arguments START and END are character positions specifying | 4857 | |
| 4858 | which portion of OBJECT for computing the hash. If BINARY is non-nil, | 4858 | The two optional arguments START and END are positions specifying for |
| 4859 | return a string in binary form. */) | 4859 | which part of OBJECT to compute the hash. If nil or omitted, uses the |
| 4860 | whole OBJECT. | ||
| 4861 | |||
| 4862 | If 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); |