def read512_1

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

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/sha512/types.bend as T512
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core.bend as C512

313def read512_1(bytes: List<&2, U32>, w0: T512.Lane) -> Read512:
314  match bytes:
315    case b0 <> b1 <> b2 <> b3 <> b4 <> b5 <> b6 <> b7 <> rest:
316      read512_2(rest, w0, T512.W{C512.pack(b0, b1, b2, b3), C512.pack(b4, b5, b6, b7)})
317    case _:
318      Short512{}

Uses (6)

Used by (1)