Commit fa598d0a authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu

crypto: aes_ti - fix comment for MixColumns step

mix_columns() contains a comment which shows the matrix used by the
MixColumns step of AES, but the last entry in this matrix was incorrect
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b9162917
...@@ -114,7 +114,7 @@ static u32 mix_columns(u32 x) ...@@ -114,7 +114,7 @@ static u32 mix_columns(u32 x)
* | 0x2 0x3 0x1 0x1 | | x[0] | * | 0x2 0x3 0x1 0x1 | | x[0] |
* | 0x1 0x2 0x3 0x1 | | x[1] | * | 0x1 0x2 0x3 0x1 | | x[1] |
* | 0x1 0x1 0x2 0x3 | x | x[2] | * | 0x1 0x1 0x2 0x3 | x | x[2] |
* | 0x3 0x1 0x1 0x3 | | x[3] | * | 0x3 0x1 0x1 0x2 | | x[3] |
*/ */
u32 y = mul_by_x(x) ^ ror32(x, 16); u32 y = mul_by_x(x) ^ ror32(x, 16);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment