165dd7388dc89bdaa50f230bdf8ecda8d465f1cf
Port of ref/hare/hash/hash.ha — the general-purpose hashing-function interface that crypto/sha256 (and, later, the lib/hash/* checksums) embed as their first field. Rides the proven io.stream + inline-vtable shape: a hash is an io-write-only stream plus sum()/reset()/sz()/bsz(). One divergence (documented at-site): Hare's `stream: io::stream` field becomes an inline `vt: io.vtable` at offset 0. ww's io collapse (#94) makes the dispatchers take the vtable pointer directly, so the vtable must be embedded inline for a *state to recover from the dispatch arg — the base64/memio/io convention.
Description
No description provided
Languages
C
89.4%
Python
7.2%
Makefile
2.3%
Shell
0.8%
Assembly
0.3%