law aes256gcm.seal
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/laws.bend as Lawsimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aead.bend as A
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm.bend as G
75law aes256gcm.seal:
76 for +key: List<&2, U32>
77 for +hk: {List.length(&2, U32, key) == 32n : Nat}
78 for +nonce: List<&2, U32>
79 for +hn: {List.length(&2, U32, nonce) == 12n : Nat}
80 for +aad: List<&2, U32>
81 for +pt: List<&2, U32>
82 {A.seal(A.AES_256_GCM{}, key, nonce, aad, pt) == Some{G.aes_seal(key, nonce, aad, pt)} : Maybe<&2, List<&2, U32>>}
Uses (9)
Used by (0)
No other definition uses this definition.