AES GCM

innocentzero

2026-03-14

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.