law stream_correct
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/chacha/stream.bend:228
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream.bend as Stream
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20.bend as I
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as R
228law stream_correct:
229 for +fuel: Nat
230 for +xs: List<&2, U32>
231 for +r: Nat
232 for +kb: List<&2, U32>
233 for +c: U32
234 for +nb: List<&2, U32>
235 {I.stream(fuel, xs, r, I.key(kb), c, I.nonce(nb)) == R.encrypt_blocks(R.blocks(fuel, xs), r, kb, c, nb) : List<&2, U32>}