summaryrefslogtreecommitdiff
path: root/crypto/ctr.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-02-16 18:35:11 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-03-14 17:06:41 +0800
commit19e976e9d3c2eb873a1018f8c73c8c86ab6b14b3 (patch)
treed52e85f357696972ebdd13d9c37e6156d9b3a9b0 /crypto/ctr.c
parentb844d33c55f244c66f6571b8d4467af9d2ec9517 (diff)
downloadlinux-crypto-19e976e9d3c2eb873a1018f8c73c8c86ab6b14b3.tar.gz
linux-crypto-19e976e9d3c2eb873a1018f8c73c8c86ab6b14b3.zip
crypto: aead - Count error stats differently
Move all stat code specific to aead into the aead code. While we're at it, change the stats so that bytes and counts are always incremented even in case of error. This allows the reference counting to be removed as we can now increment the counters prior to the operation. After the operation we simply increase the error count if necessary. This is safe as errors can only occur synchronously (or rather, the existing code already ignored asynchronous errors which are only visible to the callback function). Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ctr.c')
0 files changed, 0 insertions, 0 deletions