def lanes

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/sha3.bend:46

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha3.bend as Sha3
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/keccak/types.bend as T

46# Little-endian 64-bit lanes, eight bytes each.
47def lanes(bytes: List<&2, U32>) -> List<&2, T.Lane>:
48  match bytes:
49    case a <> b <> c <> d <> e <> f <> g <> h <> rest:
50      T.W{le32(a, b, c, d), le32(e, f, g, h)} <> lanes(rest)
51    case _:
52      Nil{}

Uses (4)

Used by (3)