crypto: talitos – fix CTR alg blocksize [Linux 5.3]

This Linux kernel change "crypto: talitos – fix CTR alg blocksize" is included in the Linux 5.3 release. This change is authored by Christophe Leroy <christophe.leroy [at] c-s.fr> on Tue May 21 13:34:11 2019 +0000. The commit for this change in Linux stable tree is b9a05b6 (patch).

crypto: talitos - fix CTR alg blocksize

CTR has a blocksize of 1.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Fixes: 5e75ae1b3cef ("crypto: talitos - add new crypto modes")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/crypto/talitos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 95f71e1..8b9a529 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -2822,7 +2822,7 @@ struct talitos_alg_template {
        .alg.crypto = {
            .cra_name = "ctr(aes)",
            .cra_driver_name = "ctr-aes-talitos",
-           .cra_blocksize = AES_BLOCK_SIZE,
+           .cra_blocksize = 1,
            .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER |
                     CRYPTO_ALG_ASYNC,
            .cra_ablkcipher = {

Leave a Reply

Your email address will not be published. Required fields are marked *