law aes256_encrypt_l
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/aes/api.bend:421
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
421law aes256_encrypt_l:
422 for +key: List<&2, U32>
423 for +h: {List.length(&2, U32, key) == 32n : Nat}
424 for +nonce: List<&2, U32>
425 for +hn: {List.length(&2, U32, nonce) == 12n : Nat}
426 for +aad: List<&2, U32>
427 for +pt: List<&2, U32>
428 {GCM.aes256_gcm_encrypt(key, nonce, aad, pt) == Some{G.aes_seal(key, nonce, aad, pt)} : Maybe<&2, List<&2, U32>>}