summaryrefslogtreecommitdiff
path: root/crypto/aes_ti.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-05-09 17:20:27 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-19 14:11:53 +0800
commit93a6347a89b7faa65ce8199eafcd94f0ff43ec57 (patch)
tree5d1ee6b31979ef43a6e691cb00c3de4cb1a361e0 /crypto/aes_ti.c
parent3ba3a93dcd40fd20e7f27a1cc8b4376be329447a (diff)
downloadlinux-crypto-93a6347a89b7faa65ce8199eafcd94f0ff43ec57.tar.gz
linux-crypto-93a6347a89b7faa65ce8199eafcd94f0ff43ec57.zip
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: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aes_ti.c')
-rw-r--r--crypto/aes_ti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/aes_ti.c b/crypto/aes_ti.c
index 92644fd1..03023b22 100644
--- a/crypto/aes_ti.c
+++ b/crypto/aes_ti.c
@@ -114,7 +114,7 @@ static u32 mix_columns(u32 x)
* | 0x2 0x3 0x1 0x1 | | x[0] |
* | 0x1 0x2 0x3 0x1 | | x[1] |
* | 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);