1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/digest: Merge from trunk; apply all changes since the

initial import, except for the removal of compatibility stub
  libraries (md5.rb and sha1.rb).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2006-10-10 05:01:33 +00:00
parent 6d83e40c32
commit 9b2fa26be4
33 changed files with 298 additions and 751 deletions

View file

@ -12,8 +12,7 @@ static algo_t sha##bitlen = { \
sizeof(SHA##bitlen##_CTX), \
(hash_init_func_t)SHA##bitlen##_Init, \
(hash_update_func_t)SHA##bitlen##_Update, \
(hash_end_func_t)SHA##bitlen##_End, \
(hash_final_func_t)SHA##bitlen##_Final, \
(hash_finish_func_t)SHA##bitlen##_Finish, \
(hash_equal_func_t)SHA##bitlen##_Equal, \
};
@ -30,7 +29,7 @@ Init_sha2()
FOREACH_BITLEN(DECLARE_ALGO_CLASS)
rb_require("digest.so");
rb_require("digest");
id_metadata = rb_intern("metadata");