AES GCM

AES GCM

innocentzero

2026-03-12

#cryptography #math | Status: Complete

A brief on the galois counter mode for AES that allows for simultaneous authentication and encryption of data.

AES GCM

We basically use a counter like AES CTR and use the encrypted counter as an OTP for the text.

AAD: authentication of additional data

Galois field mathematics for GCM

The field used for the tag computation is GF128. It's characterizing polynomial is x128+x7+x2+x+1x^{128} + x^7 + x^2 + x + 1. Rest of the things work the same way as how galois fields work.