def block_bytes

bend-collections-laws-crypto@1.0.0.0 · src/crypto/argon2/argon2.bend:67

import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/argon2.bend as Argon2
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/types.bend as A

67# The 1024 little-endian bytes of a block.
68def block_bytes(b: A.Block) -> List<&2, U32>:
69  match b:
70    case A.B{r0, r1, r2, r3, r4, r5, r6, r7}:
71      List.concat(&2, U32, [state_bytes(r0), state_bytes(r1), state_bytes(r2), state_bytes(r3), state_bytes(r4), state_bytes(r5), state_bytes(r6), state_bytes(r7)])

Uses (5)

Used by (5)