Import the "digest" module and the submodules, from the Rough Ruby
project.
ext/digest:
This module provides the module Digest and the abstract class
Digest::Base.
ext/digest/md5 (which obsoletes ext/md5):
This module provides the class Digest::MD5 which implements the
MD5 Message-Digest Algorithm.
ext/digest/rmd160:
This module provides the class Digest::RMD160 which implements the
RIPEMD-160 cryptographic hash function.
ext/digest/sha1 (which obsoletes ext/sha1):
This module provides the class Digest::SHA1 which implements the
SHA-1 Secure Hash Algorithm.
ext/digest/sha2:
This module provides the classes Digest::SHA256, Digest::SHA384
and Digest::SHA512 which implement the SHA-256, SHA-384 and
SHA-512 Secure Hash Algorithms, respectively.
lib/md5.rb, lib/sha1.rb:
These files are provided for backward compatibility.
All these classes have the common API, which previously ext/md5 and
ext/sha1 modules provided. While the new API keeps 100% backward
compatibility, it has been enriched with several utility methods.
Read digest.txt for further details.
0 lines of code changed in:
* ext/sha1/sha1-ruby.c (sha1_hexdigest): fix buffer overflow. The
buffer for a SHA-1 hexdigest needs to be 41 bytes in length.
1 lines of code changed in:
* ext/sha1/sha1-ruby.c (md5i_new): separate initialize() from
new().
* ext/md5/md5init.c (sha1_new): ditto.
18 lines of code changed in:
* ext/sha1/sha1-ruby.c (sha1_new): get rid of an unneeded
rb_obj_call_init() call.
0 lines of code changed in:
* ext/sha1/sha1.txt, ext/sha1/sha1.txt.jp: fix typos.
3 lines of code changed in:
Add .cvsignore to let CVS ignore Makefile which is automatically
generated.
0 lines of code changed in:
* ext/sha1/MANIFEST: Added.
0 lines of code changed in:
* ext/md5/md5.txt.jp, ext/sha1/sha1.txt.jp: s/SuperClass/Superclass/.
1 lines of code changed in:
* ext/sha1/sha1.txt.jp: add the Japanese version derived from
ext/md5/md5.txt.jp.
* ext/sha1/sha1.txt: revise the copyright info and reduce the
difference from ext/md5/md5.txt.
* ext/md5/md5.txt: reduce the difference from ext/sha1/sha1.txt.
25 lines of code changed in:
* ext/sha1/extconf.rb, ext/sha1/sha1.c: use WORDS_BIGENDIAN to
detect the platform's endian.
3 lines of code changed in:
Initial revision
40 lines of code changed in: