def rounds
import bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/core.bend as Coreimport Base
116# n double rounds (2n rounds).
117def rounds(n: Nat, s: State) -> State:
118 match n:
119 case 0n: s
120 case 1n+p: rounds(p, double_round(s))
Uses (3)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/core:block
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/core:rounds_correct
- bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20: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/xchacha:hbody_correct