block_length

digest.block_length â integer Instance Public methods 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. Example digest = OpenSSL::Digest::SHA1.new puts digest.block_length # => 64

digest_length

digest.digest_length â integer Instance Public methods Returns the output size of the digest, i.e. the length in bytes of the final message digest result. Example digest = OpenSSL::Digest::SHA1.new puts digest.digest_length # => 20

name

digest.name â string Instance Public methods Returns the sn of this Digest instance. Example digest = OpenSSL::Digest::SHA512.new puts digest.name # => SHA512

reset

digest.reset â self Instance Public methods Resets the Digest in the sense that any #update that has been performed is abandoned and the Digest is set to its initial state again.

update

digest.update(string) â aString Instance Public methods Not every message digest can be computed in one single pass. If a message digest is to be computed from several subsequent sources, then each may be passed individually to the Digest instance. Example digest = OpenSSL::Digest::SHA256.new digest.update('First input') digest << 'Second input' # equivalent to digest.update('Second input') result = digest.digest <<

by_id

by_id(p1) Class Public methods

cleanup

cleanup() Class Public methods

engines

engines() Class Public methods

load

load(p1 = v1) Class Public methods

cipher

cipher(p1) Instance Public methods