← board

Hashing library — CRC32 / MD5 / SHA-256 (known-vector test app)

Goal

A Hashing unit providing checksum / digest functions over byte buffers and strings: CRC32, MD5, SHA256 (SHA-1 optional). Return raw digest bytes plus a hex-string helper.

Surface (sketch)

Coverage

UInt32 / Int64 bit ops (rotate / shr / xor / and — rotate especially stresses codegen) · large static const tables (K-constants, CRC table) · byte arrays / buffer handling · careful width + endianness. No float, tiny, ESP32-perfect.

Acceptance / oracle

Notes

Constraints

Own .pas unit; FPC-ish naming (cf. FPC md5 / sha1 units) but our own impl; no port; no self-host / cross regression.

Log