diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-08-19 10:22:26 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-30 04:05:28 -0400 |
commit | c4624488665fff8edddb00ed0fd00ea4c985d591 (patch) | |
tree | f4c3ee2258a48d35248da8445356211dd8152c2f /drivers/crypto | |
parent | 84a0b00aa486c0ab0216771c5cb988e2277b7498 (diff) |
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/s5p-sss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index ef90c58edb1f..010f1bb20dad 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c | |||
@@ -2173,7 +2173,7 @@ static struct crypto_alg algs[] = { | |||
2173 | .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | | 2173 | .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | |
2174 | CRYPTO_ALG_ASYNC | | 2174 | CRYPTO_ALG_ASYNC | |
2175 | CRYPTO_ALG_KERN_DRIVER_ONLY, | 2175 | CRYPTO_ALG_KERN_DRIVER_ONLY, |
2176 | .cra_blocksize = AES_BLOCK_SIZE, | 2176 | .cra_blocksize = 1, |
2177 | .cra_ctxsize = sizeof(struct s5p_aes_ctx), | 2177 | .cra_ctxsize = sizeof(struct s5p_aes_ctx), |
2178 | .cra_alignmask = 0x0f, | 2178 | .cra_alignmask = 0x0f, |
2179 | .cra_type = &crypto_ablkcipher_type, | 2179 | .cra_type = &crypto_ablkcipher_type, |