def read256_15

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

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/sha/core.bend as C256

68def read256_15(bytes: List<&2, U32>, w0: U32, w1: U32, w2: U32, w3: U32, w4: U32, w5: U32, w6: U32, w7: U32, w8: U32, w9: U32, w10: U32, w11: U32, w12: U32, w13: U32, w14: U32) -> Read256:
69  match bytes:
70    case b0 <> b1 <> b2 <> b3 <> rest:
71      read256_16(rest, w0, w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, w11, w12, w13, w14, C256.pack(b0, b1, b2, b3))
72    case _:
73      Short256{}

Uses (5)

Used by (1)