Beryl::Crypto::V1::SecureHashWith256BitDigest
Inherits Beryl::Crypto::V1::SecureHashWith32BitWords < Beryl::Crypto::V1::BlockHashFunction < Digest < Reference < Object
SHA-256 (FIPS 180-4 ยง6.2): a 256-bit digest. This is the hash Beryl
recommends and the one Beryl::Crypto.digest uses.
Beryl::Crypto::V1::SHA256.hexdigest("abc")
# => "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
hash = Beryl::Crypto::V1::SHA256.new
hash.update("a").update("bc")
hash.final # => Bytes[186, 120, 22, ...]
Constants
DIGEST_SIZE = 32
The number of bytes in the digest.