Splitting and rejoining byte strings #
ByteArray counterpart of Util.Combine: extract lemmas for concatenations and splits.
A ByteArray as a fixed-width vector; out-of-range bytes are 0.
Equations
- Cryptlib.Util.Bytes.toVecN n a = Vector.ofFn fun (i : Fin n) => a.get! ↑i