def aes128_gcm_encrypt
import bend-collections@1.0.0.0/src/crypto/aesgcm.bend as Aesgcmimport Base
import bend-collections@1.0.0.0/src/crypto/aes/gcm.bend as G
11# AES-128-GCM: a 16-byte key. Returns ciphertext || tag.
12def aes128_gcm_encrypt(+key: List<&2, U32>, +nonce: List<&2, U32>, +aad: List<&2, U32>, +pt: List<&2, U32>) -> Maybe<&2, List<&2, U32>>:
13 G.seal_key(G.schedule_of(16n, key), nonce, aad, pt)