class MbedTLS::Digest::SHA384

Overview

A binding to the mbed TLS implementation of the SHA384 digest algorithm.

Defined in:

Constructors

Class Method Summary

Instance Method Summary

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 SHA384. Raises a DigestError if the linked copy of libmbedcrypto was not compiled with support for the SHA384 digest algorithm.


Class Method Detail

def self.is_supported? #

Whether the linked libmbedcrypto supports the SHA384 digest.


Instance Method Detail

def clone : SHA384 #

Creates a new SHA384 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.


def md_type_of : Type #

The Type enum of this Digest algorithm.