]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
crypto: s5p - use correct block size of 1 for ctr(aes)
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 19 Aug 2019 14:22:26 +0000 (17:22 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Aug 2019 08:05:28 +0000 (18:05 +1000)
Align the s5p ctr(aes) implementation with other implementations
of the same mode, by setting the block size to 1.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Kamil Konieczny <k.konieczny@partner.samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/s5p-sss.c

index ef90c58edb1f4083097de38ea3771c47b80bd7c0..010f1bb20dadae833e7388c3360eee215d53eb99 100644 (file)
@@ -2173,7 +2173,7 @@ static struct crypto_alg algs[] = {
                .cra_flags              = CRYPTO_ALG_TYPE_ABLKCIPHER |
                                          CRYPTO_ALG_ASYNC |
                                          CRYPTO_ALG_KERN_DRIVER_ONLY,
-               .cra_blocksize          = AES_BLOCK_SIZE,
+               .cra_blocksize          = 1,
                .cra_ctxsize            = sizeof(struct s5p_aes_ctx),
                .cra_alignmask          = 0x0f,
                .cra_type               = &crypto_ablkcipher_type,