aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/ChangeLog6
-rw-r--r--doc/lispref/elisp.texi2
-rw-r--r--doc/lispref/text.texi20
-rw-r--r--doc/lispref/vol1.texi2
-rw-r--r--doc/lispref/vol2.texi2
-rw-r--r--etc/NEWS1
6 files changed, 26 insertions, 7 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 40fefde4396..762f173563f 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,9 @@
12012-02-10 Glenn Morris <rgm@gnu.org>
2
3 * text.texi (Checksum/Hash): Rename node from MD5 Checksum.
4 Mention secure-hash.
5 * elisp.texi, vol1.texi, vol2.texi: Update menu entry.
6
12012-02-10 Chong Yidong <cyd@gnu.org> 72012-02-10 Chong Yidong <cyd@gnu.org>
2 8
3 * loading.texi (Loading): Don't emphasize "library" terminology. 9 * loading.texi (Loading): Don't emphasize "library" terminology.
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi
index f69823101d0..cd688acd6ac 100644
--- a/doc/lispref/elisp.texi
+++ b/doc/lispref/elisp.texi
@@ -1061,7 +1061,7 @@ Text
1061* Registers:: How registers are implemented. Accessing 1061* Registers:: How registers are implemented. Accessing
1062 the text or position stored in a register. 1062 the text or position stored in a register.
1063* Base 64:: Conversion to or from base 64 encoding. 1063* Base 64:: Conversion to or from base 64 encoding.
1064* MD5 Checksum:: Compute the MD5 "message digest"/"checksum". 1064* Checksum/Hash:: Computing "message digests"/"checksums"/"hashes".
1065* Atomic Changes:: Installing several buffer changes "atomically". 1065* Atomic Changes:: Installing several buffer changes "atomically".
1066* Change Hooks:: Supplying functions to be run when text is changed. 1066* Change Hooks:: Supplying functions to be run when text is changed.
1067 1067
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 8e7434de2ed..416bfef4a60 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -56,7 +56,7 @@ the character after point.
56* Registers:: How registers are implemented. Accessing the text or 56* Registers:: How registers are implemented. Accessing the text or
57 position stored in a register. 57 position stored in a register.
58* Base 64:: Conversion to or from base 64 encoding. 58* Base 64:: Conversion to or from base 64 encoding.
59* MD5 Checksum:: Compute the MD5 "message digest"/"checksum". 59* Checksum/Hash:: Computing "message digests"/"checksums"/"hashes".
60* Parsing HTML:: Parsing HTML and XML. 60* Parsing HTML:: Parsing HTML and XML.
61* Atomic Changes:: Installing several buffer changes "atomically". 61* Atomic Changes:: Installing several buffer changes "atomically".
62* Change Hooks:: Supplying functions to be run when text is changed. 62* Change Hooks:: Supplying functions to be run when text is changed.
@@ -4071,9 +4071,11 @@ decoded text.
4071The decoding functions ignore newline characters in the encoded text. 4071The decoding functions ignore newline characters in the encoded text.
4072@end defun 4072@end defun
4073 4073
4074@node MD5 Checksum 4074@node Checksum/Hash
4075@section MD5 Checksum 4075@section Checksum/Hash
4076@cindex MD5 checksum 4076@cindex MD5 checksum
4077@cindex hashing, secure
4078@cindex SHA-1
4077@cindex message digest computation 4079@cindex message digest computation
4078 4080
4079 MD5 cryptographic checksums, or @dfn{message digests}, are 128-bit 4081 MD5 cryptographic checksums, or @dfn{message digests}, are 128-bit
@@ -4084,7 +4086,7 @@ RFC@footnote{
4084For an explanation of what is an RFC, see the footnote in @ref{Base 4086For an explanation of what is an RFC, see the footnote in @ref{Base
408564}. 408764}.
4086}1321. This section describes the Emacs facilities for computing 4088}1321. This section describes the Emacs facilities for computing
4087message digests. 4089message digests and other forms of ``secure hash''.
4088 4090
4089@defun md5 object &optional start end coding-system noerror 4091@defun md5 object &optional start end coding-system noerror
4090This function returns the MD5 message digest of @var{object}, which 4092This function returns the MD5 message digest of @var{object}, which
@@ -4119,6 +4121,16 @@ using the specified or chosen coding system. However, if
4119coding instead. 4121coding instead.
4120@end defun 4122@end defun
4121 4123
4124@defun secure-hash algorithm object &optional start end binary
4125This function provides a general interface to a variety of secure
4126hashing algorithms. As well as the MD5 algorithm, it supports SHA-1,
4127SHA-2, SHA-224, SHA-256, SHA-384 and SHA-512. The argument
4128@var{algorithm} is a symbol stating which hash to compute. The
4129arguments @var{object}, @var{start}, and @var{end} are as for the
4130@code{md5} function. If the optional argument @var{binary} is
4131non-@code{nil}, returns a string in binary form.
4132@end defun
4133
4122@node Parsing HTML 4134@node Parsing HTML
4123@section Parsing HTML 4135@section Parsing HTML
4124@cindex parsing html 4136@cindex parsing html
diff --git a/doc/lispref/vol1.texi b/doc/lispref/vol1.texi
index 0f4a4447ed3..798bd0cabf6 100644
--- a/doc/lispref/vol1.texi
+++ b/doc/lispref/vol1.texi
@@ -1082,7 +1082,7 @@ Text
1082* Registers:: How registers are implemented. Accessing 1082* Registers:: How registers are implemented. Accessing
1083 the text or position stored in a register. 1083 the text or position stored in a register.
1084* Base 64:: Conversion to or from base 64 encoding. 1084* Base 64:: Conversion to or from base 64 encoding.
1085* MD5 Checksum:: Compute the MD5 "message digest"/"checksum". 1085* Checksum/Hash:: Computing "message digests"/"checksums"/"hashes".
1086* Atomic Changes:: Installing several buffer changes "atomically". 1086* Atomic Changes:: Installing several buffer changes "atomically".
1087* Change Hooks:: Supplying functions to be run when text is changed. 1087* Change Hooks:: Supplying functions to be run when text is changed.
1088 1088
diff --git a/doc/lispref/vol2.texi b/doc/lispref/vol2.texi
index 241728fd1d2..3ef7dd7f87f 100644
--- a/doc/lispref/vol2.texi
+++ b/doc/lispref/vol2.texi
@@ -1081,7 +1081,7 @@ Text
1081* Registers:: How registers are implemented. Accessing 1081* Registers:: How registers are implemented. Accessing
1082 the text or position stored in a register. 1082 the text or position stored in a register.
1083* Base 64:: Conversion to or from base 64 encoding. 1083* Base 64:: Conversion to or from base 64 encoding.
1084* MD5 Checksum:: Compute the MD5 "message digest"/"checksum". 1084* Checksum/Hash:: Computing "message digests"/"checksums"/"hashes".
1085* Atomic Changes:: Installing several buffer changes "atomically". 1085* Atomic Changes:: Installing several buffer changes "atomically".
1086* Change Hooks:: Supplying functions to be run when text is changed. 1086* Change Hooks:: Supplying functions to be run when text is changed.
1087 1087
diff --git a/etc/NEWS b/etc/NEWS
index 816c636fdf7..df35fee46b9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -408,6 +408,7 @@ in the corresponding way.
408+++ 408+++
409** The variable `focus-follows-mouse' now always defaults to nil. 409** The variable `focus-follows-mouse' now always defaults to nil.
410 410
411+++
411** New primitive `secure-hash' that supports many secure hash algorithms: 412** New primitive `secure-hash' that supports many secure hash algorithms:
412md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library 413md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library
413sha1.el has been removed. The `sha1' feature is provided by default. 414sha1.el has been removed. The `sha1' feature is provided by default.