def hchacha_rounds
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as Chachaimport Base
187# Entered through a match on the key, as block_rounds.
188def hchacha_rounds(+n: Nat, key: List<&2, U32>, +nonce: List<&2, U32>) -> List<&2, U32>:
189 match key:
190 case Nil{}: hchacha_body(n, Nil{}, nonce)
191 case b <> rest: hchacha_body(n, b <> rest, nonce)
Uses (4)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:hchacha20
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/xchacha:hchacha_rounds_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/laws:hchacha_length
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/laws:hchacha_rounds