law hchacha20.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
85law hchacha20.valid:
86 for +key: List<&2, U32>
87 for +nonce: List<&2, U32>
88 for +hk: {List.length(&2, U32, key) == 32n : Nat}
89 for +hn: {List.length(&2, U32, nonce) == 16n : Nat}
90 {I.hchacha20(key, nonce) == Some{R.hchacha20(key, nonce)} : Maybe<&2, List<&2, U32>>}
Uses (14)
Used by (0)
No other definition uses this definition.