diff options
| author | Joakim Verona | 2012-02-15 15:12:49 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-02-15 15:12:49 +0100 |
| commit | 02db17e53bf46c91b2cb8ee33b43d8ae252a1681 (patch) | |
| tree | fcafa961e884648e15524130f1dbca55dc7093d0 /src/fns.c | |
| parent | 736ab04e2752e7c3c5b5070a0d62279dcfb12b27 (diff) | |
| parent | 1deeb569b1247db4c0b2eea4906a9e53e5ee7e99 (diff) | |
| download | emacs-02db17e53bf46c91b2cb8ee33b43d8ae252a1681.tar.gz emacs-02db17e53bf46c91b2cb8ee33b43d8ae252a1681.zip | |
upstream
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); |