summaryrefslogtreecommitdiffstats
path: root/ext/digest
Commit message (Collapse)AuthorAgeFilesLines
* * sample/optparse/opttest.rb: added.nobu2003-12-015-33/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add a XXX comment.knu2003-10-151-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_alloc): need to initializeusa2003-10-151-1/+1
| | | | | | | buffer. [ruby-dev:21622] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/digest/test_digest.rb: Moved from ext/digest/test.rb.knu2003-10-142-92/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_atfork): wrong format specifier.matz2003-09-291-1/+1
| | | | | | | | | [ruby-dev:21428] * process.c (pst_inspect): better description. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): pass LIBPATH to make ruby. [ruby-dev:21137]nobu2003-08-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * ext/extmk.rb (extmake): set library name as source file name in Init_ext(). [ruby-dev:21137] * lib/mkmf.rb (Logging::postpone): postpone logging messages after heading message as the result of the block. * lib/mkmf.rb (macro_defined?): append newline to src unless ended with it. * lib/mkmf.rb (have_library): allow nil function name to just append a library. (ruby-bugs:PR#1083) * lib/mkmf.rb (pkg_config): should append additional libraries to $libs but not $LIBS. [ruby-dev:21137] * ext/io/wait/extconf.rb: check DOSISH macro instead of platform. * ext/digest/sha1/extconf.rb: have_library already appends library name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb (TkCore::chooseDirectory): back up wronglymatz2003-07-261-1/+1
| | | | | | | removed method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/defs.h: better support for old Cygwin, again.eban2003-06-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/defs.h: better support for old Cygwin.eban2003-06-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/defs.h: avoid warnings on Cygwin.eban2003-06-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_values_at): new method to replace select(index..).matz2003-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | * hash.c (rb_hash_values_at,env_values_at): ditto. * re.c (match_values_at): ditto. * struct.c (rb_struct_values_at): ditto. * re.c (match_select): add iterator behavior. * ext/curses/curses.c, ext/digest/sha2/sha2.c, ext/iconv/iconv.c, ext/racc/cparse/cparse.c: include "ruby.h" at the top to shut up "_FILE_OFFSET_BITS redefined" warning on Solaris. * class.c (rb_class_protected_instance_methods): now gives warnings to show migration path. The default will be reversed on Jan 2004. * numeric.c (num_step): "1.1.step(1.5,0.1)" to work. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h (rb_check_array_type): Declare rb_check_array_type().knu2003-01-061-0/+2
| | | | | | | | | | * ext/digest/md5/md5ossl.c: Include stdio.h for sprintf() and string.h for memcmp(). * ext/dl/ptr.c: Include ctype.h for isdigit(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_alloc), dir.c (dir_s_alloc), eval.c (thgroup_s_alloc),usa2002-12-211-1/+2
| | | | | | | | | | | | | | | file.c (rb_stat_s_alloc), hash.c (hash_alloc), io.c (io_alloc), object.c (rb_module_s_alloc, rb_class_allocate_instance), re.c (match_alloc, rb_reg_s_alloc), string.c (str_alloc), time.c (time_s_alloc), ext/digest/digest.c (rb_digest_base_alloc), ext/tcltklib/tcltklib.c (ip_alloc), ext/win32ole/win32ole.c (fole_s_allocate, fev_s_allocate) : add prototype to get rid of VC++ warnings. * ext/sdbm/init.c (fsdbm_alloc): allocator takes only one argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c, ext/digest/digest.c, ext/dl/handle.c,nobu2002-12-201-1/+1
| | | | | | | | | | ext/dl/ptr.c, ext/dl/sym.c, ext/gdbm/gdbm.c, ext/iconv/iconv.c, ext/stringio/stringio.c, ext/strscan/strscan.c, ext/tcltklib/tcltklib.c, ext/win32ole/win32ole.c: use rb_define_alloc_func(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_copy): renamed "become".nobu2002-12-111-2/+2
| | | | | | | * ext/stringio/stringio.c (strio_copy): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/test.rb: Switch from RUnit to Test::Unit.knu2002-11-271-11/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update the MANIFEST files.knu2002-09-274-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add a knob WITH_BUNDLED_ENGINES to test.sh.knu2002-09-261-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha1: Use OpenSSL's SHA1 engine if available. It isknu2002-09-265-5/+77
| | | | | | | | | much faster than what we have now (sha1.[ch]). Add a knob (--with-bundled-sha1) to extconf.rb which makes it use the bundled one anyway. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/rmd160: Use OpenSSL's RMD160 engine if available. Itknu2002-09-265-5/+81
| | | | | | | | | is much faster than what we have now (rmd160.[ch]). Add a knob (--with-bundled-rmd160) to extconf.rb which makes it use the bundled one anyway. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/md5: Use OpenSSL's MD5 engine if available. It isknu2002-09-265-4/+56
| | | | | | | | | much faster than what we have now (md5.[ch]). Add a knob (--with-bundled-md5) to extconf.rb which makes it use the bundled one anyway. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_s_digest): Fix a doubleknu2002-09-261-5/+2
| | | | | | | | | | free() bug mingled with allocation framework deployment. * ext/digest/digest.c (rb_digest_base_s_hexdigest): Get rid of redundant struct allocation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: modify program_prefix only if specifiedeban2002-09-085-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | --program-prefix. * configure.in: don't generate ext/extmk.rb. * Makefile.in: execute directly $(srcdir)/ext/extmk.rb. remove -Cext option, "Dir::chdir 'ext'" in ext/extmk.rb. * {win32,bccwin32}/Makefile.sub: ditto. * instruby.rb: ditto. * ext/extmk.rb: renamed from ext/extmk.rb.in. * lib/mkmf.rb (module Logging): create log files (mkmf.log) in each extension module directories. * ext/extmk.rb: ditto. * lib/mkmf.rb (macro_defined?): new method. * ext/.cvsignore: remove extmk.rb. * ext/*/.cvsignore: add "*.def". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* = should be ==matz2002-09-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix rb_digest_base_become (ruby-core:428)michal2002-09-041-3/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_make_metaclass): obj.meta.super.meta should be equalmatz2002-09-042-4/+2
| | | | | | | | | | | | to obj.meta.meta.super (ruby-bugs-ja:PR#324). * parse.y (yylex): the warning message "invalid character syntax" was never issued. * marshal.c (r_bytes): do not use alloca (ruby-bugs:PR#382). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_copy_generic_ivar): remove old generic instancematz2002-09-032-69/+43
| | | | | | | | | | variable table if it existes. * class.c (rb_make_metaclass): metaclass of a metaclass is a metaclass itself. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* new platform [bccwin32] merged.H_Konishi2002-06-111-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Probably */depend should be added to this file too.knu2002-03-211-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest: add depend file.nobu2002-03-1810-0/+33
| | | | | | | | | | | | | | | | | | | * ext/digest/md5: ditto. * ext/digest/rmd160: ditto. * ext/digest/sha1: ditto. * ext/digest/sha2: ditto. * ext/iconv/MANIFEST: ditto. * ext/stringio/MANIFEST: ditto. * ext/syslog: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha2/sha2.c: Merge from rough. Fix a couple ofknu2002-02-261-3/+3
| | | | | | | | | | | off-by-one errors in Aaron Gifford's code. Obtained from: KAME via FreeBSD KAME PR: 393 FreeBSD PR: kern/34242 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge from rough.knu2002-02-244-4/+64
| | | | | | | - Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/md5/md5init.c (Init_md5): rb_cvar_declare() isnobu2002-02-174-8/+8
| | | | | | | | | | | | | replaced by rb_cvar_set(). * ext/digest/rmd160/rmd160init.c (Init_rmd160): ditto. * ext/digest/sha1/sha1init.c (Init_sha1): ditto. * ext/digest/sha2/sha2init.c (Init_sha2): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c: primes should be primes.matz2002-01-161-1/+2
| | | | | | | | | | | | * eval.c (is_defined): method defined? check should honor protected too. * eval.c (block_pass): should not pass tainted block, if $SAFE > 0. * variable.c (rb_mod_remove_cvar): should pass the char*. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_restore_context): save current value ofmatz2001-09-081-0/+23
| | | | | | | | | | | | | | | | | lastline and lastmatch in the thread struct for later restore. * eval.c (rb_thread_save_context): restore lastline and lastmatch. * numeric.c (flo_to_s): should handle negative float value. * class.c (rb_include_module): should check whole ancestors to avoid duplicate module inclusion. * string.c (trnext): should check backslash before updating "now" position. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_s_hexdigest): remove a debugknu2001-09-061-1/+1
| | | | | | | print. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_s_digest,knu2001-09-061-0/+12
| | | | | | | rb_digest_base_s_hexdigest): ensure that a string is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha2/extconf.rb: fix support for cross-compiling.eban2001-08-201-8/+2
| | | | | | | * mkconfig.rb: fix support for autoconf 2.52. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/*/extconf.rb: really fix so that they build from anyknu2001-08-144-10/+10
| | | | | | | directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha2/extconf.rb: fix so that they build from anyknu2001-08-141-1/+1
| | | | | | | directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/defs.h: Define NO_UINT64_T instead of emitting anknu2001-08-142-6/+12
| | | | | | | | | | error to fail. * ext/digest/sha2/extconf.rb: Do not exit on error, and utilize NO_UINT64_T to detect if the system has a 64bit integer type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha2/extconf.rb: do not create Makefile when no 64bitknu2001-08-141-0/+8
| | | | | | | integer type is detected. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Rename *.jp to *.ja, since jp is a region code and ja is a languageknu2001-07-192-2/+2
| | | | | | | code. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/*/extconf.rb: fix so that they build from anyknu2001-07-144-4/+4
| | | | | | | directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import the "digest" module and the submodules, from the Rough Rubyknu2001-07-1339-0/+3890
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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e