def state

bend-collections@1.0.0.0 · src/crypto/chacha/chacha20.bend:55

import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as Chacha20
import 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)

Uses (5)

Used by (1)