def state
import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as Chacha20import Base
import bend-collections@1.0.0.0/src/crypto/chacha/core.bend as C
55def state(k: Key, counter: U32, n: Nonce) -> C.State:
56 match k n:
57 case K{k0, k1, k2, k3, k4, k5, k6, k7} N{n0, n1, n2}:
58 C.init(k0, k1, k2, k3, k4, k5, k6, k7, counter, n0, n1, n2)