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:
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)