Perform the vectors Sbox, InvSbox, ExpoToPoly and PolyToExpo used during the initialization of the AES algorithm.
[E,P,S,I] = NL_S_AESInitializationM()
Polynomial representation of w(x)^k.
Power k of w such that x=w^k.
S-Box.
Reverse S-Box.
NL_S_AESInitializationM performs 4 vectors used by the AES algorithm (WIKIPEDIA). The table E consists of a vector of 256 values such that E[k] gives the polynomial representation of . By convention, 0 is represented by
. P corresponds to the reverse of E. S (respectivelly I) represents the substitution table S-Box (respectivelly Inv S-Box) used during the SubBytes (respectivelly InvSubBytes) step.