protocol
hash_digest_protocolï
Protocol for fixed-size cryptographic hash functions exposing raw digests and digest metadata.
Availability:
logtalk_load(hashes(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-04-16
Compilation flags:
staticExtends:
public hash_protocolRemarks:
(none)
Inherited public predicates:
 hash/2
Public predicatesï
digest/2ï
Computes the digest for a list of bytes and returns it as a list of bytes.
Compilation flags:
staticTemplate:
digest(Bytes,Digest)Mode and number of proofs:
digest(+list(byte),--list(byte)) - onedigest_size/1ï
Returns the digest size in bytes.
Compilation flags:
staticTemplate:
digest_size(DigestSize)Mode and number of proofs:
digest_size(--integer) - oneblock_size/1ï
Returns the hash block size in bytes.
Compilation flags:
staticTemplate:
block_size(BlockSize)Mode and number of proofs:
block_size(--integer) - oneProtected predicatesï
(no local declarations; see entity ancestors if any)
Private predicatesï
(no local declarations; see entity ancestors if any)
Operatorsï
(none)