summaryrefslogtreecommitdiff
path: root/crypto/ecb.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-12-08 15:34:41 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-03 08:41:34 +1100
commitcbebe807d8465ef8f541a57c12ed6a3b55f73629 (patch)
treec5169848f1364c077b5cf726ffaf55d40b84c040 /crypto/ecb.c
parent4204b130b8a4d1cd2c4a0d9a5a09993e8948defe (diff)
downloadlinux-crypto-cbebe807d8465ef8f541a57c12ed6a3b55f73629.tar.gz
linux-crypto-cbebe807d8465ef8f541a57c12ed6a3b55f73629.zip
crypto: tcrypt - avoid signed overflow in byte count
The signed long type used for printing the number of bytes processed in tcrypt benchmarks limits the range to -/+ 2 GiB, which is not sufficient to cover the performance of common accelerated ciphers such as AES-NI when benchmarked with sec=1. So switch to u64 instead. While at it, fix up a missing printk->pr_cont conversion in the AEAD benchmark. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecb.c')
0 files changed, 0 insertions, 0 deletions