law Api256.bad_key_open

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

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/laws.bend as Laws
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aesgcm.bend as GCM

425law Api256.bad_key_open:
426  for +key: List<&2, U32>
427  for +h: {Nat.is_eq(List.length(&2, U32, key), 32n) == False{} : Bool}
428  for +nonce: List<&2, U32>
429  for +aad: List<&2, U32>
430  for +ct: List<&2, U32>
431  {GCM.aes256_gcm_decrypt(key, nonce, aad, ct) == None{} : Maybe<&2, List<&2, U32>>}

Uses (10)

Used by (0)

No other definition uses this definition.