提交 02ebbb4f 编写于 作者: C Christophe Leroy 提交者: Greg Kroah-Hartman

crypto: talitos - fix CTR alg blocksize

commit b9a05b6041cb9810a291315569b2af0d63c3680a upstream.

CTR has a blocksize of 1.
Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr>
Fixes: 5e75ae1b ("crypto: talitos - add new crypto modes")
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 39fa02a3
...@@ -2728,7 +2728,7 @@ static struct talitos_alg_template driver_algs[] = { ...@@ -2728,7 +2728,7 @@ static struct talitos_alg_template driver_algs[] = {
.alg.crypto = { .alg.crypto = {
.cra_name = "ctr(aes)", .cra_name = "ctr(aes)",
.cra_driver_name = "ctr-aes-talitos", .cra_driver_name = "ctr-aes-talitos",
.cra_blocksize = AES_BLOCK_SIZE, .cra_blocksize = 1,
.cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER |
CRYPTO_ALG_ASYNC, CRYPTO_ALG_ASYNC,
.cra_ablkcipher = { .cra_ablkcipher = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册