logoalt Hacker News

Galois Finite Fields and the Advanced Encryption Standard (AES)

71 points • by ankitg12 • last Saturday at 8:34 AM • 9 comments • view on HN

Comments

prideout • today at 10:01 PM

Is this post popular because of a recent mathematical discovery in this problem space?

ceroxylon • today at 9:56 PM

>Weirdly, members of a field of size pn are equivalent to polynomials of degree up to n

Wouldn't it be equivalent to polynomials of degree less than n (up to n−1)?

benlivengood • today at 9:39 PM

Hey, one of my university professors! GF2^8 is also great for RAID6+ and Reed Solomon codes.

Back in the day it was tractable to build AES lookup tables for computing MixColumns and SubBytes similar to the site's multiplication table. Then djb found a remote timing attack, so processors started implementing hardware AES instructions.

➕ show 1 reply
mmozeiko • today at 9:21 PM

> Inverses exist for each operation, which makes decryption possible.

It is worth mentioning that in modern AES usage this feature does not really matter, because block cipher is used in CTR mode. In CTR block cipher is used to create long keystream bytes (pretty much one-time-pad key). This keystream gets xor'ed with plaintext to get ciphertext. Then getting from ciphertext back to plaintext is exactly the same xor operation with same keystream, no inverse AES operations needed.

➕ show 1 reply
dboreham • today at 6:45 PM

I don't know that "Weirdly" is right for the polynomial equivalence -- isn't that what Galois was trying to do in the first place (prove things about polynomials such as the impossibility of analytic solutions to higher order polynomials, and the impossibility of constructing a heptagon)?

➕ show 3 replies