AES-192-GCM
Counter-mode AES with a GHASH polynomial MAC; the default AEAD of TLS and IPsec
About AES-192-GCM
AES-192-GCM is one of 3 AES-GCM variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 24-byte (192-bit) key, a 12-byte nonce and a 16-byte (128-bit) authentication tag. Its registry entry cites NIST SP 800-38D. It is also known as aes192-gcm and aes-192-gcm-96. NextSSL lists it in the standard tier and exposes it through the safe API.
Overview
AES-GCM combines AES in counter mode with GHASH, a universal hash over GF(2^128), to provide authenticated encryption with associated data. It is standardised in NIST SP 800-38D and is the most widely deployed AEAD in TLS, IPsec, SSH and disk and storage protocols.
Galois/Counter Mode encrypts the plaintext with AES in counter mode, starting from a counter block derived from the nonce. The authentication tag is computed by GHASH, a polynomial evaluation in GF(2^128) keyed with H = AES_K(0), over the associated data, the ciphertext and a length block; the result is masked with the encryption of the initial counter block.
The construction is fully parallelisable and runs at high speed on processors with AES and carry-less multiplication instructions (AES-NI and PCLMULQDQ on x86, the ARMv8 crypto extensions). NextSSL exposes AES-128-GCM, AES-192-GCM and AES-256-GCM with the standard 96-bit nonce and 128-bit tag.
GCM is simple to use correctly only if nonces never repeat under one key. Its security bounds also degrade with very large data volumes per key, which is why protocols such as TLS 1.3 define key-update limits.
History
2004–2018GCM published by David McGrew and John Viega
Approved in NIST SP 800-38D
Used in TLS 1.2 cipher suites
One of the mandatory TLS 1.3 AEADs
How it works
- Derive the hash key H by encrypting the all-zero block with AES under K.
- Form the initial counter block J0 from the 96-bit nonce and encrypt the plaintext in counter mode starting at J0 + 1.
- Run GHASH over the associated data, the ciphertext and a 128-bit length block.
- Encrypt J0 and XOR it with the GHASH output to produce the tag; truncate if a shorter tag is configured.
- On decryption, recompute and compare the tag in constant time before releasing any plaintext.
Security notes
Reusing a nonce with the same key reveals the XOR of plaintexts and allows recovery of the GHASH key, after which an attacker can forge arbitrary messages. Short tags and non-96-bit nonces weaken the guarantees; use random or counter nonces with strict uniqueness and rekey well before the usage limits.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 24 | Secret key |
| nonce | 12 | Nonce / IV |
| tag | 16 | Authentication tag |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
key, nonce = ns.random(24), ns.random(12)
ct = ns.call("aead_seal", "aes-192-gcm", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = ns.call("aead_open", "aes-192-gcm", None, key, nonce, b"header", ct)[0]
nextssl_aead_seal("aes-192-gcm", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_aead_open("aes-192-gcm", NULL, key, nonce, aad, ct, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_aead_in(reg::all(), Policy::Safe, "aes-192-gcm", &Params::new())?;
let ct = alg.seal(&key, &nonce, b"header", b"secret")?;
let pt = alg.open(&key, &nonce, b"header", &ct)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other AES-GCM variants
2Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is AES-192-GCM?
AES-192-GCM is an AEAD in the AES-GCM family. AES-GCM combines AES in counter mode with GHASH, a universal hash over GF(2^128), to provide authenticated encryption with associated data. It is also known as aes192-gcm, aes-192-gcm-96.
What are the AES-192-GCM sizes?
In NextSSL, AES-192-GCM uses: key 24 bytes, nonce 12 bytes, tag 16 bytes.
Who designed AES-192-GCM and when?
AES-192-GCM belongs to the AES-GCM family, first published in 2004 by David McGrew, John Viega. Its origin: NIST SP 800-38D.
Which standards define AES-192-GCM?
AES-192-GCM is referenced by NIST SP 800-38D. It is specified in a FIPS standard.
Is AES-192-GCM safe to use?
AES-192-GCM is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.
What other AES-GCM variants are there?
NextSSL also registers aes-128-gcm, aes-256-gcm in the AES-GCM family.
Related families
CBC-MAC then counter-mode encryption with AES (NIST SP 800-38C, RFC 3610)
AES-GCM-SIVNonce-misuse-resistant AES mode using POLYVAL and synthetic IVs (RFC 8452)
ChaCha20-Poly1305ARX stream cipher with a one-time Poly1305 MAC; fast and constant-time in software
AESThe Advanced Encryption Standard: the world's default 128-bit block cipher
GHASHThe GF(2^128) polynomial hash at the core of AES-GCM and GMAC
ChaChaBernstein's ARX stream cipher; ChaCha20 secures much of today's TLS, SSH and VPN traffic