def read3_0

bend-collections-laws-crypto@1.0.0.0 · src/crypto/hash.bend:474

import bend-collections-laws-crypto@1.0.0.0/src/crypto/hash.bend as Hash
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/keccak/types.bend as TK
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha3/core.bend as C3

474def read3_0(bytes: List<&2, U32>) -> Read3:
475  match bytes:
476    case b0 <> b1 <> b2 <> b3 <> b4 <> b5 <> b6 <> b7 <> rest:
477      read3_1(rest, TK.W{C3.pack(b0, b1, b2, b3), C3.pack(b4, b5, b6, b7)})
478    case _:
479      Short3{}

Uses (6)

Used by (3)