def block
import bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/core.bend as Coreimport Base
128# The block function with n double rounds: the rounds, then the input added.
129def block(+n: Nat, +s: State) -> State:
130 add(s, rounds(n, s))
Uses (4)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20:keystream
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:block_length
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:body_correct
- 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:front_correct