From: Leilei Zhao Date: Tue, 22 Apr 2014 07:23:23 +0000 (+0800) Subject: crypto: atmel-aes - correct block size of cfb8 mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5d8c961c52f6324fa15f9f7c1b76f409e759b96;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git crypto: atmel-aes - correct block size of cfb8 mode The block size of aes cfb8 mode shoule be 8 bit. Signed-off-by: Leilei Zhao Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index d7c9e317423c..12628a75fbcc 100644 --- a/drivers/crypto/atmel-aes.c +++ b/drivers/crypto/atmel-aes.c @@ -1069,7 +1069,7 @@ static struct crypto_alg aes_algs[] = { .cra_driver_name = "atmel-cfb8-aes", .cra_priority = 100, .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC, - .cra_blocksize = CFB64_BLOCK_SIZE, + .cra_blocksize = CFB8_BLOCK_SIZE, .cra_ctxsize = sizeof(struct atmel_aes_ctx), .cra_alignmask = 0x0, .cra_type = &crypto_ablkcipher_type,