def lanes

bend-collections@1.0.0.0 · src/crypto/sha3/core.bend:18

import bend-collections@1.0.0.0/src/crypto/sha3/core.bend as Core
import Base
import bend-collections@1.0.0.0/src/crypto/keccak/types.bend as T

18def lanes(bytes: List<&2, U32>) -> List<&2, T.Lane>:
19  match bytes:
20    case a <> b <> c <> d <> e <> f <> g <> h <> rest:
21      T.W{pack(a, b, c, d), pack(e, f, g, h)} <> lanes(rest)
22    case _:
23      Nil{}

Uses (4)

Used by (2)