projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b916291
)
crypto: aes_ti - fix comment for MixColumns step
author
Eric Biggers
<ebiggers@google.com>
Wed, 10 May 2017 00:20:27 +0000
(17:20 -0700)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 19 Jun 2017 06:11:53 +0000
(14:11 +0800)
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>
crypto/aes_ti.c
patch
|
blob
|
history
diff --git
a/crypto/aes_ti.c
b/crypto/aes_ti.c
index 92644fd1ac19c0fe5012e1c50c73a2e9f034327a..03023b2290e8ec6e790679a30ddf4763e0476923 100644
(file)
--- 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 0x
3
| | x[3] |
+ * | 0x3 0x1 0x1 0x
2
| | x[3] |
*/
u32 y = mul_by_x(x) ^ ror32(x, 16);