law chacha20_block.valid
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/laws.bend as Lawsimport 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
53law chacha20_block.valid:
54 for +key: List<&2, U32>
55 for +counter: U32
56 for +nonce: List<&2, U32>
57 for +hk: {List.length(&2, U32, key) == 32n : Nat}
58 for +hn: {List.length(&2, U32, nonce) == 12n : Nat}
59 {I.chacha20_block(key, counter, nonce) == Some{R.block(key, counter, nonce)} : Maybe<&2, List<&2, U32>>}
Uses (14)
Used by (0)
No other definition uses this definition.