<< NL_S_AESPolynomialMult NL_S: Security NL_S_AESShiftRowsR >>

NARVAL >> NL_S: Security > NL_S_AESShiftRows

NL_S_AESShiftRows

Shift each row of a 4x4 matrix to the left.

Calling Sequence

[R] = NL_S_AESShiftRows(S)

Arguments

S :

4x4 state matrix.

R :

Matrix.

Description

NL_S_AESShiftRows runs on each row of the 4x4 matrix S. Each row element is shifted to the left. The offset depends on the row index. | 1 2 3 4 | | 1 2 3 4 | | 1 2 3 4 | | 2 3 4 1 | | 1 2 3 4 | | 3 4 1 2 | | 1 2 3 4 | | 4 1 2 3 |

Examples

v=1:4;
S=[v;v;v;v];
[R]=NL_S_AESShiftRows(S)//application of NL_S_AESShiftRows

Report an issue
<< NL_S_AESPolynomialMult NL_S: Security NL_S_AESShiftRowsR >>