File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ Wed Apr 11 07:38:33 2012 Eric Hodel <
[email protected] >
2+
3+ * ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
4+ in documentation examples. Patch by naleski via
5+ https://github.com/ruby/ruby/pull/115
6+
17Wed Apr 11 07:33:13 2012 Eric Hodel <
[email protected] >
28
39 * pack.c (pack_pack): Warn when an invalid character is found in the
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ def finish # :nodoc:
6868 #
6969 # Returns the block length of the digest in bytes.
7070 #
71- # Digest::SHA256.new.digest_length * 8
71+ # Digest::SHA256.new.block_length * 8
7272 # # => 512
73- # Digest::SHA384.new.digest_length * 8
73+ # Digest::SHA384.new.block_length * 8
7474 # # => 1024
75- # Digest::SHA512.new.digest_length * 8
75+ # Digest::SHA512.new.block_length * 8
7676 # # => 1024
7777 def block_length
7878 @sha2 . block_length
You can’t perform that action at this time.
0 commit comments