aead
Authenticated encryption with associated data (AEAD),例如ccm (CBC counter mode), gcm (Galois counter mode)。
gcm
The Galois/Counter Mode of Operation (GCM)
Nonce-Disrespecting Adversaries
nonce不能重用。
xgcm
dndk-gcm
[Double Nonce Derive Key AES-GCM (DNDK-GCM)](https://datatracker.ietf.org/doc/draft-gueron-cfrg-dndkgcm/)
为gcm增加key commitment,避免不同的 (k1, m1), (k2, m2) 加密得到相同的 (c, t)
K, NONCE(要求24 bytes,要求random) -> KC, DK
KC用于key commitment用于校验
DK, 全0的NONCE用于加密