Commit c4624488 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Herbert Xu

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: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: default avatarKamil Konieczny <k.konieczny@partner.samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 84a0b00a
...@@ -2173,7 +2173,7 @@ static struct crypto_alg algs[] = { ...@@ -2173,7 +2173,7 @@ static struct crypto_alg algs[] = {
.cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER |
CRYPTO_ALG_ASYNC | CRYPTO_ALG_ASYNC |
CRYPTO_ALG_KERN_DRIVER_ONLY, CRYPTO_ALG_KERN_DRIVER_ONLY,
.cra_blocksize = AES_BLOCK_SIZE, .cra_blocksize = 1,
.cra_ctxsize = sizeof(struct s5p_aes_ctx), .cra_ctxsize = sizeof(struct s5p_aes_ctx),
.cra_alignmask = 0x0f, .cra_alignmask = 0x0f,
.cra_type = &crypto_ablkcipher_type, .cra_type = &crypto_ablkcipher_type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment