law aes256_decrypt_l

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/aes/api.bend:447

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/api.bend as Api
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aesgcm.bend as GCM
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm.bend as G

447law aes256_decrypt_l:
448  for +key: List<&2, U32>
449  for +h: {List.length(&2, U32, key) == 32n : Nat}
450  for +nonce: List<&2, U32>
451  for +hn: {List.length(&2, U32, nonce) == 12n : Nat}
452  for +aad: List<&2, U32>
453  for +ct: List<&2, U32>
454  {GCM.aes256_gcm_decrypt(key, nonce, aad, ct) == G.aes_open(key, nonce, aad, ct) : Maybe<&2, List<&2, U32>>}

Uses (9)

Used by (2)