diff options
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 15 |
1 files changed, 9 insertions, 6 deletions
| @@ -4847,12 +4847,15 @@ guesswork fails. Normally, an error is signaled in such case. */) | |||
| 4847 | } | 4847 | } |
| 4848 | 4848 | ||
| 4849 | DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0, | 4849 | DEFUN ("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. |
| 4851 | ALGORITHM is a symbol: md5, sha1, sha224, sha256, sha384 or sha512. | 4851 | ALGORITHM is a symbol specifying the hash to use: |
| 4852 | OBJECT is either a string or a buffer. | 4852 | md5, sha1, sha224, sha256, sha384 or sha512. |
| 4853 | Optional arguments START and END are character positions specifying | 4853 | |
| 4854 | which portion of OBJECT for computing the hash. If BINARY is non-nil, | 4854 | The two optional arguments START and END are positions specifying for |
| 4855 | return a string in binary form. */) | 4855 | which part of OBJECT to compute the hash. If nil or omitted, uses the |
| 4856 | whole OBJECT. | ||
| 4857 | |||
| 4858 | If 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); |