law decrypt.valid
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/laws.bend as Lawsimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aead.bend as A
143law decrypt.valid:
144 for +alg: A.Alg
145 for +key: List<&2, U32>
146 for +nonce: List<&2, U32>
147 for +aad: List<&2, U32>
148 for +data: List<&2, U32>
149 for +hk: {List.length(&2, U32, key) == A.key_size(alg) : Nat}
150 for +hn: {List.length(&2, U32, nonce) == A.nonce_size(alg) : Nat}
151 {A.decrypt(alg, key, nonce, aad, data) == A.open(alg, key, nonce, aad, data) : Maybe<&2, List<&2, U32>>}
Uses (11)
Used by (0)
No other definition uses this definition.