category
blake2_core(Key,DigestSize)
Key- A list of key bytes. Use the empty list for unkeyed hashing.DigestSize- Number of digest bytes to generate.
Common BLAKE2 hash function core.
logtalk_load(hashes(loader))staticPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
blake2_max_digest_size/1
Returns the maximum digest size in bytes for the BLAKE2 variant.
staticblake2_max_digest_size(MaxDigestSize)blake2_max_digest_size(--integer) - oneblake2_max_key_size/1
Returns the maximum key size in bytes for the BLAKE2 variant.
staticblake2_max_key_size(MaxKeySize)blake2_max_key_size(--integer) - oneblake2_block_size/1
Returns the block size in bytes for the BLAKE2 variant.
staticblake2_block_size(BlockSize)blake2_block_size(--integer) - oneblake2_round_count/1
Returns the number of compression rounds for the BLAKE2 variant.
staticblake2_round_count(RoundCount)blake2_round_count(--integer) - oneblake2_initial_state/2
Computes the initial hash state from the parameter word.
staticblake2_initial_state(ParameterWord,InitialState)blake2_initial_state(+integer,--list(integer)) - oneblake2_working_vector/4
Initializes the compression working vector from the hash state, byte counter, and final block flag.
staticblake2_working_vector(State,Total,Final,WorkingVector)blake2_working_vector(+list(integer),+integer,+boolean,--list(integer)) - oneblake2_block_words/2
Decodes a block of bytes into the message words used by the compression function.
staticblake2_block_words(Block,MessageWords)blake2_block_words(+list(byte),--list(integer)) - oneblake2_g/10
Applies the BLAKE2 G mixing function to four scalar working words and two message words.
staticblake2_g(A0,B0,C0,D0,X,Y,A,B,C,D)blake2_g(+integer,+integer,+integer,+integer,+integer,+integer,--integer,--integer,--integer,--integer) - oneblake2_finalize/4
Finalizes the hash state by combining it with the compression working vector.
staticblake2_finalize(HashState,WorkingVector,Index,FinalState)blake2_finalize(+list(integer),+list(integer),+integer,--list(integer)) - oneblake2_state_bytes/2
Encodes the hash state words as little-endian bytes.
staticblake2_state_bytes(State,Bytes)blake2_state_bytes(+list(integer),--list(byte)) - onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)