def read512_0

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

import bend-collections@1.0.0.0/src/crypto/hash.bend as Hash
import Base
import bend-collections@1.0.0.0/src/crypto/sha512/types.bend as T512
import bend-collections@1.0.0.0/src/crypto/sha512/core.bend as C512

320def read512_0(bytes: List<&2, U32>) -> Read512:
321  match bytes:
322    case b0 <> b1 <> b2 <> b3 <> b4 <> b5 <> b6 <> b7 <> rest:
323      read512_1(rest, T512.W{C512.pack(b0, b1, b2, b3), C512.pack(b4, b5, b6, b7)})
324    case _:
325      Short512{}

Uses (6)

Used by (2)