summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-05-21 13:34:11 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-19 09:08:07 +0200
commitde12345c4bf686d9b9552773b4c03f96e4e68750 (patch)
tree4d10e07f145c253e00d72367e876980264cb1ff6 /drivers/crypto
parent3dbb17c438ad0705b9b6b2de7a082342f93ed32b (diff)
downloadlinux-stable-de12345c4bf686d9b9552773b4c03f96e4e68750.tar.gz
linux-stable-de12345c4bf686d9b9552773b4c03f96e4e68750.tar.bz2
linux-stable-de12345c4bf686d9b9552773b4c03f96e4e68750.zip
crypto: talitos - fix CTR alg blocksize
commit b9a05b6041cb9810a291315569b2af0d63c3680a upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/talitos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index e0e017d2d67f..c1d0c9375ce7 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -2644,7 +2644,7 @@ static struct talitos_alg_template driver_algs[] = {
.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 = {