* src/fns.c (Fsecure_hash): Doc fix.

* etc/NEWS: Related edit.
This commit is contained in:
Glenn Morris 2012-02-10 00:38:22 -08:00
parent b2096d7233
commit 49241268b2
3 changed files with 16 additions and 10 deletions

View file

@ -408,10 +408,9 @@ in the corresponding way.
+++
** The variable `focus-follows-mouse' now always defaults to nil.
** New primitive `secure-hash' that supports many secure hash algorithms
including md5, sha-1 and sha-2 (sha-224, sha-256, sha-384 and sha-512).
The elisp implementation sha1.el is removed. Feature sha1 is provided
by default.
** New primitive `secure-hash' that supports many secure hash algorithms:
md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library
sha1.el has been removed. The `sha1' feature is provided by default.
** Menu-bar changes
---

View file

@ -1,3 +1,7 @@
2012-02-10 Glenn Morris <rgm@gnu.org>
* fns.c (Fsecure_hash): Doc fix.
2012-02-09 Kenichi Handa <handa@m17n.org>
* coding.c (produce_chars): Fix updating of src_end (Bug#10701).

View file

@ -4847,12 +4847,15 @@ guesswork fails. Normally, an error is signaled in such case. */)
}
DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0,
doc: /* Return the secure hash of an OBJECT.
ALGORITHM is a symbol: md5, sha1, sha224, sha256, sha384 or sha512.
OBJECT is either a string or a buffer.
Optional arguments START and END are character positions specifying
which portion of OBJECT for computing the hash. If BINARY is non-nil,
return a string in binary form. */)
doc: /* Return the secure hash of OBJECT, a buffer or string.
ALGORITHM is a symbol specifying the hash to use:
md5, sha1, sha224, sha256, sha384 or sha512.
The two optional arguments START and END are positions specifying for
which part of OBJECT to compute the hash. If nil or omitted, uses the
whole OBJECT.
If BINARY is non-nil, returns a string in binary form. */)
(Lisp_Object algorithm, Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object binary)
{
return secure_hash (algorithm, object, start, end, Qnil, Qnil, binary);