law aes256_decrypt

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

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

176law aes256_decrypt:
177  for +key: List<&2, U32>
178  for +h: {List.length(&2, U32, key) == 32n : Nat}
179  for +n0: U32
180  for +n1: U32
181  for +n2: U32
182  for +n3: U32
183  for +n4: U32
184  for +n5: U32
185  for +n6: U32
186  for +n7: U32
187  for +n8: U32
188  for +n9: U32
189  for +n10: U32
190  for +n11: U32
191  for +aad: List<&2, U32>
192  for +ct: List<&2, U32>
193  {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 (20)

Used by (4)