class MbedTLS::Digest::SHA224
- MbedTLS::Digest::SHA224
- MbedTLS::Digest
- Reference
- Object
Overview
A binding to the mbed TLS implementation of the SHA224 digest algorithm.
Defined in:
Constructors
-
.new
Creates a new instance for hashing data with SHA224.
Class Method Summary
-
.is_supported?
Whether the linked libmbedcrypto supports the SHA224 digest.
Instance Method Summary
-
#clone : SHA224
Creates a new
SHA224
instance with the same internal state. -
#digest_size : UInt8
The size of the digest's output, in bytes.
-
#md_type_of : Type
The
Type
enum of this Digest algorithm.
Instance methods inherited from class MbedTLS::Digest
base64digest!
base64digest!,
clone : Digest
clone,
digest!
digest!,
digest_size : UInt8
digest_size,
finalize
finalize,
hexdigest!
hexdigest!,
md_type_of : Type
md_type_of,
name : String
name,
reset
reset,
to_unsafe : Pointer(LibMbedCrypto::MDContext)
to_unsafe,
update(data : String | Slice)
update
Class methods inherited from class MbedTLS::Digest
supported_types
supported_types
Instance methods inherited from module MbedTLS::DigestBase
<<(data)
<<,
base64digest
base64digest,
digest
digest,
file(file_name)
file,
hexdigest
hexdigest,
to_s(io)
to_s,
update(io : IO)
update
Class methods inherited from module MbedTLS::DigestBase
hexdump(digest)
hexdump
Constructor Detail
def self.new
#
Creates a new instance for hashing data with SHA224.
Raises a DigestError
if the linked copy of libmbedcrypto was not
compiled with support for the SHA224 digest algorithm.
Class Method Detail
Instance Method Detail
Creates a new SHA224
instance with the same internal state.
Raises a DigestError
if a library issue happens during the clone operation.
def digest_size : UInt8
#
The size of the digest's output, in bytes. This is the size of the raw digest, not it's hex representation.