law encrypt.valid

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/aead/laws.bend:124

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/laws.bend as Laws
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aead.bend as A

124law encrypt.valid:
125  for +alg: A.Alg
126  for +key: List<&2, U32>
127  for +nonce: List<&2, U32>
128  for +aad: List<&2, U32>
129  for +pt: List<&2, U32>
130  for +hk: {List.length(&2, U32, key) == A.key_size(alg) : Nat}
131  for +hn: {List.length(&2, U32, nonce) == A.nonce_size(alg) : Nat}
132  {A.encrypt(alg, key, nonce, aad, pt) == A.seal(alg, key, nonce, aad, pt) : Maybe<&2, List<&2, U32>>}

Uses (11)

Used by (0)

No other definition uses this definition.