def aes_seal
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm.bend as Gcmimport Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend as AES
175# GCM over AES with the key's own Nk and Nr (FIPS 197 Figure 4).
176def aes_seal(+key: List<&2, U32>, +iv: List<&2, U32>, +aad: List<&2, U32>, pt: List<&2, U32>) -> List<&2, U32>:
177 seal(AES.nk(key), AES.nr(key), key, iv, aad, pt)
Uses (5)
Used by (12)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/api:aes128_encrypt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/api:aes128_encrypt_l
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/api:aes256_encrypt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/api:aes256_encrypt_l
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/api:aes128_roundtrip
- …