* [PATCH] crypto: aes_ti - fix comment for MixColumns step
@ 2017-05-10 0:20 Eric Biggers
2017-05-10 7:40 ` Ard Biesheuvel
2017-06-19 6:39 ` Herbert Xu
0 siblings, 2 replies; 3+ messages in thread
From: Eric Biggers @ 2017-05-10 0:20 UTC (permalink / raw)
To: linux-crypto; +Cc: Herbert Xu, David S . Miller, Ard Biesheuvel, Eric Biggers
From: Eric Biggers <ebiggers@google.com>
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
--- and did not match the code, which is correct. Fix the comment.
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
crypto/aes_ti.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
* | 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);
--
2.13.0.rc2.291.g57267f2277-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] crypto: aes_ti - fix comment for MixColumns step
2017-05-10 0:20 [PATCH] crypto: aes_ti - fix comment for MixColumns step Eric Biggers
@ 2017-05-10 7:40 ` Ard Biesheuvel
2017-06-19 6:39 ` Herbert Xu
1 sibling, 0 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2017-05-10 7:40 UTC (permalink / raw)
To: Eric Biggers; +Cc: linux-crypto, Herbert Xu, David S . Miller, Eric Biggers
On 10 May 2017 at 01:20, Eric Biggers <ebiggers3@gmail.com> wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> 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
> --- and did not match the code, which is correct. Fix the comment.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
> crypto/aes_ti.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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)
> * | 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);
>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] crypto: aes_ti - fix comment for MixColumns step
2017-05-10 0:20 [PATCH] crypto: aes_ti - fix comment for MixColumns step Eric Biggers
2017-05-10 7:40 ` Ard Biesheuvel
@ 2017-06-19 6:39 ` Herbert Xu
1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2017-06-19 6:39 UTC (permalink / raw)
To: Eric Biggers; +Cc: linux-crypto, David S . Miller, Ard Biesheuvel, Eric Biggers
On Tue, May 09, 2017 at 05:20:27PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> 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
> --- and did not match the code, which is correct. Fix the comment.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-19 6:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-10 0:20 [PATCH] crypto: aes_ti - fix comment for MixColumns step Eric Biggers
2017-05-10 7:40 ` Ard Biesheuvel
2017-06-19 6:39 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.