GCM
Cheat sheet · https://pcornel.dk/topic.php?topic=4694
Answer
GCM (Galois/Counter Mode) provides encryption and authentication together (AEAD) with AES. It is fast and standard in TLS and IPsec, but a nonce must never be reused with the same key.
Remember
- Encryption plus authentication.
- Nonce reuse is catastrophic.
- Check tag on decrypt.
First checks
openssl s_client -connect <host>:443 -cipher ECDHE-RSA-AES128-GCM-SHA256 </dev/null— GCM in TLS 1.2- Nonce strategy (96-bit unique) — safety
- Data limits per key — rekeying
Verify in this order
key + nonce → CTR + GHASH → ciphertext + tag
Where it usually breaks
First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4694