law aes128_decrypt
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/aes/api.bend:63
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
63law aes128_decrypt:
64 for +key: List<&2, U32>
65 for +h: {List.length(&2, U32, key) == 16n : Nat}
66 for +n0: U32
67 for +n1: U32
68 for +n2: U32
69 for +n3: U32
70 for +n4: U32
71 for +n5: U32
72 for +n6: U32
73 for +n7: U32
74 for +n8: U32
75 for +n9: U32
76 for +n10: U32
77 for +n11: U32
78 for +aad: List<&2, U32>
79 for +ct: List<&2, U32>
80 {GCM.aes128_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>>}