law aes128_encrypt_l
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/aes/api.bend:271
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
271law aes128_encrypt_l:
272 for +key: List<&2, U32>
273 for +h: {List.length(&2, U32, key) == 16n : Nat}
274 for +nonce: List<&2, U32>
275 for +hn: {List.length(&2, U32, nonce) == 12n : Nat}
276 for +aad: List<&2, U32>
277 for +pt: List<&2, U32>
278 {GCM.aes128_gcm_encrypt(key, nonce, aad, pt) == Some{G.aes_seal(key, nonce, aad, pt)} : Maybe<&2, List<&2, U32>>}