def inner_blocks
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as Chachaimport 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 (6)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/core:rounds_correct
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:block_body
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:hchacha_body
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/core:block_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:sblock
- …