law Api256.decrypt

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

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
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm.bend as G

340law Api256.decrypt:
341  for +key: List<&2, U32>
342  for +h: {List.length(&2, U32, key) == 32n : Nat}
343  for +n0: U32
344  for +n1: U32
345  for +n2: U32
346  for +n3: U32
347  for +n4: U32
348  for +n5: U32
349  for +n6: U32
350  for +n7: U32
351  for +n8: U32
352  for +n9: U32
353  for +n10: U32
354  for +n11: U32
355  for +aad: List<&2, U32>
356  for +ct: List<&2, U32>
357  {GCM.aes256_gcm_decrypt(key, [n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11], aad, ct) == G.aes_open(key, [n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11], aad, ct) : Maybe<&2, List<&2, U32>>}

Uses (8)

Used by (0)

No other definition uses this definition.