I'm really in trouble! I'm trying to understand how the T-tables in AES encryption work. But I don't know if I get the point. What I understood is that they are used to reduce the whole computation of the iteration of AES just looking at the T-boxes and the XOR operation. Now, what I got is that:
State M Matrix
┏ ┓ ┏ ┓
┃ d4 e0 b8 1e ┃ ┃ 02 03 01 01 ┃
┃ bf b4 41 27 ┃ ┃ 01 02 03 01 ┃
┃ 5d 52 11 98 ┃ ┃ 01 01 02 03 ┃
┃ 30 ae f1 e5 ┃ ┃ 03 01 01 02 ┃
┗ ┛ ┗ ┛
I have my State matrix and M matrix composed by 4X4 bytes. Each t-table should receive in input one byte and give in output 4 bytes. Now, in order to create the t-tables i will have in the first table:
T0=(d4*02)+(d4*01)+(d4*01)+(d4*03)
(e0*02)+(e0*01)+(e0*01)+(e0*03)
(b8*02)+(b8*01)+(b8*01)+(b8*03)
(1e*02)+(1e*01)+(1e*01)+(1e*03)
Then the second table should be:
T0=(bf*03)+(bf*02)+(bf*01)+(bf*01)
(b4*03)+(b4*02)+(b4*01)+(b4*01)
(41*03)+(41*02)+(41*01)+(41*01)
(27*03)+(27*02)+(27*01)+(27*01)
And so on...until I'll have 4 tables. Am I right? Now...How can I use these tables?