law take_eq
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream.bend as Streamimport 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
198law take_eq:
199 for +n: Nat
200 for +xs: List<&2, U32>
201 {I.take(n, xs) == R.prefix(n, xs) : List<&2, U32>}
Uses (6)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/chacha20poly1305:xkey_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/xchacha:xencrypt_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/chacha20poly1305:open_len_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/chacha20poly1305:poly_key_eq