diff options
author | Eric Biggers <ebiggers@google.com> | 2017-05-09 20:20:27 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-06-19 02:11:53 -0400 |
commit | fa598d0a7026219461a1ad76e27117ce325fa0e4 (patch) | |
tree | b2c7b7dc32690795cb955ca75d2ac2c2e34e368a /crypto/aes_ti.c | |
parent | b9162917fafd36690491af35a262e628c2ffd8a7 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/aes_ti.c b/crypto/aes_ti.c index 92644fd1ac19..03023b2290e8 100644 --- a/crypto/aes_ti.c +++ b/crypto/aes_ti.c | |||
@@ -114,7 +114,7 @@ static u32 mix_columns(u32 x) | |||
114 | * | 0x2 0x3 0x1 0x1 | | x[0] | | 114 | * | 0x2 0x3 0x1 0x1 | | x[0] | |
115 | * | 0x1 0x2 0x3 0x1 | | x[1] | | 115 | * | 0x1 0x2 0x3 0x1 | | x[1] | |
116 | * | 0x1 0x1 0x2 0x3 | x | x[2] | | 116 | * | 0x1 0x1 0x2 0x3 | x | x[2] | |
117 | * | 0x3 0x1 0x1 0x3 | | x[3] | | 117 | * | 0x3 0x1 0x1 0x2 | | x[3] | |
118 | */ | 118 | */ |
119 | u32 y = mul_by_x(x) ^ ror32(x, 16); | 119 | u32 y = mul_by_x(x) ^ ror32(x, 16); |
120 | 120 | ||