block_length() public

Returns the block length of the digest algorithm, i.e. the length in bytes of an individual block. Most modern algorithms partition a message to be digested into a sequence of fix-sized blocks that are processed consecutively.


digest = OpenSSL::Digest::SHA1.new
puts digest.block_length # => 64
Show source
Register or log in to add new notes.