Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: s5p - use correct block size of 1 for ctr(aes)

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>

authored by

Ard Biesheuvel and committed by
Herbert Xu
c4624488 84a0b00a

+1 -1
+1 -1
drivers/crypto/s5p-sss.c
··· 2173 2173 .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | 2174 2174 CRYPTO_ALG_ASYNC | 2175 2175 CRYPTO_ALG_KERN_DRIVER_ONLY, 2176 - .cra_blocksize = AES_BLOCK_SIZE, 2176 + .cra_blocksize = 1, 2177 2177 .cra_ctxsize = sizeof(struct s5p_aes_ctx), 2178 2178 .cra_alignmask = 0x0f, 2179 2179 .cra_type = &crypto_ablkcipher_type,