Re-exported predicates
The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
- open_hash_stream(+OrgStream, -HashStream, +Options) is det
- Open a filter stream on OrgStream that maintains a hash. The
hash can be retrieved at any time using stream_hash/2. Provided
options:
- algorithm(+Algorithm)
- One of
md5
, sha1
, sha224
, sha256
, sha384
or
sha512
. Default is sha1
.
- close_parent(+Bool)
- If
true
(default), closing the filter stream also closes the
original (parent) stream.
- stream_hash(+HashStream, -Digest:atom) is det
- Unify Digest with a hash for the bytes send to or read from
HashStream. Note that the hash is computed on the stream
buffers. If the stream is an output stream, it is first flushed
and the Digest represents the hash at the current location. If
the stream is an input stream the Digest represents the hash of
the processed input including the already buffered data.