1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/digest/sha2
nahi e56f2abe4b * ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
Error caused by unalignment access on Sparc-Solaris (and possibly on
  other similar environment.) This patch just do memcpy always instead
  of checking architecture. I see no perf drop on my 64bit env. For
  more details, see #4320.

* test/digest/test_digest.rb: add test for unalignment access.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-15 03:03:31 +00:00
..
lib * ext/digest: Improve documentation of Digest, Digest::HMAC and 2011-05-16 20:52:55 +00:00
depend * ext/digest/sha2: Use OpenSSL's SHA1 engine if available. 2010-02-22 02:21:22 +00:00
extconf.rb * ext/digest/sha2/extconf.rb: check SHA256_CTX and SHA512_CTX to fix 2010-04-21 12:25:29 +00:00
sha2.c * ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus 2011-07-15 03:03:31 +00:00
sha2.h * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
sha2init.c * ext/digest/extconf.rb: use OpenSSL only when all transform 2010-02-24 00:31:37 +00:00
sha2ossl.c * ext/digest/sha2: Use OpenSSL's SHA1 engine if available. 2010-02-22 02:21:22 +00:00
sha2ossl.h * ext/digest/sha2: Use OpenSSL's SHA1 engine if available. 2010-02-22 02:21:22 +00:00