Extendable-output functions on raw bit strings #
A request specifies an input and a byte count. Every request at the same input reads a prefix of one stream, even if the counts or the roles of the callers differ.
A bit-input XOF with output lengths in bytes.
The requested number of bytes at this raw input.
Every request returns the specified number of bytes.
Requesting more bytes preserves every byte already read.
Byte input uses the FIPS 202 least-significant-bit-first convention.
A call to an extendable-output stream specifies the raw input and requested byte count.
Complete input bits, including any message, seed or counter framing.
- count : ℕ
Number of bytes requested from the beginning of this stream.
Adaptive requests to a single prefix-consistent XOF on raw bit strings.
Read every request consistently from one XOF.
Read an XOF with the first bytes of this stream replaced. Requests shorter than the replacement are truncations. Longer requests continue with the original tail.
Overwriting each selected input's prefix gives a single prefix-consistent XOF on raw inputs. Every role reading the same input sees the same bytes, including when their counts differ.
Replacing a stream prefix by its actual first bytes preserves every read.
Fill a finite window of each selected raw row, starting after its previously read prefix. All earlier bytes, other rows and bytes past the window come from the original XOF.
An input outside the completed rows keeps its entire XOF output.
Within the filled window a raw read consists of its old prefix followed by fresh bytes.
All previously read prefixes, including repeated reads at different lengths, survive.
The byte at a fixed offset of a raw XOF input stream.
A prefix update affects exactly the byte offsets present in the replacement row.
Two XOFs agree on all finite reads if their individual bytes agree.