law open_sound

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

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

312law open_sound:
313  for +alg: A.Alg
314  for +key: List<&2, U32>
315  for +nonce: List<&2, U32>
316  for +aad: List<&2, U32>
317  for +data: List<&2, U32>
318  for +p: List<&2, U32>
319  for +hk: {List.length(&2, U32, key) == A.key_size(alg) : Nat}
320  for +hn: {List.length(&2, U32, nonce) == A.nonce_size(alg) : Nat}
321  for +h: {A.open(alg, key, nonce, aad, data) == Some{p} : Maybe<&2, List<&2, U32>>}
322  {A.seal(alg, key, nonce, aad, p) == Some{data} : Maybe<&2, List<&2, U32>>}

Uses (42)

Used by (1)