SubBytes
SubBytes is a nonlinear byte substitution step used in the Advanced Encryption Standard (AES), also known as Rijndael. In each round, the state, a 4x4 array of bytes, has every byte replaced independently by a value from a fixed 8-bit S-box. This substitution is applied to all 16 bytes of the state in parallel.
The AES S-box is a fixed table derived from a specific mathematical construction. It is created by
In operation, SubBytes is followed by ShiftRows and MixColumns in encryption rounds, with a final round that
Implementation considerations typically favor a table-driven approach, using a 256-entry lookup table for the S-box in