def inner_blocks

bend-collections@1.0.0.0 · spec/crypto/chacha.bend:67

import bend-collections@1.0.0.0/spec/crypto/chacha.bend as Chacha
import Base

67# n applications of inner_block (ChaCha20: n = 10, twenty rounds).
68def inner_blocks(n: Nat, s: List<&2, U32>) -> List<&2, U32>:
69  match n:
70    case 0n: s
71    case 1n+p: inner_blocks(p, inner_block(s))

Uses (4)

Used by (2)