class NaCl::Hash::Blake2b

Defined in:

nacl/hash/blake2b.cr

Constant Summary

BYTES_MAX = LibSodium::CRYPTO_KDF_BLAKE2B_BYTES_MAX
BYTES_MIN = LibSodium::CRYPTO_KDF_BLAKE2B_BYTES_MIN
CONTEXTBYTES = LibSodium::CRYPTO_KDF_BLAKE2B_CONTEXTBYTES
EMPTY_PERSONAL = "\u0000" * PERSONALBYTES
EMPTY_SALT = "\u0000" * SALTBYTES
KEYBYTES = LibSodium::CRYPTO_KDF_BLAKE2B_KEYBYTES
KEYBYTES_MAX = LibSodium::CRYPTO_KDF_BLAKE2B_KEYBYTES_MAX
KEYBYTES_MIN = LibSodium::CRYPTO_KDF_BLAKE2B_KEYBYTES_MIN
PERSONALBYTES = LibSodium::CRYPTO_KDF_BLAKE2B_PERSONALBYTES
SALTBYTES = LibSodium::CRYPTO_KDF_BLAKE2B_SALTBYTES

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(key = nil, digest_size = nil, personal = nil, salt = nil) #

[View source]

Class Method Detail

def self.digest(message, key = nil, digest_size = nil, salt = nil, personal = nil) #

[View source]

Instance Method Detail

def digest #

[View source]
def reset #

[View source]
def update(message) #

[View source]