aboutsummaryrefslogtreecommitdiff
path: root/crypto/ahash.c
diff options
context:
space:
mode:
authorGravatar Herbert Xu <herbert@gondor.apana.org.au> 2023-02-16 18:35:13 +0800
committerGravatar Herbert Xu <herbert@gondor.apana.org.au> 2023-03-14 17:06:41 +0800
commit035d78a11c56828bb4923fa87eeb9ed2546d52bd (patch)
tree24fd8ff5bdfa2568453d4b9a16b8ba85d4b8c7b3 /crypto/ahash.c
parentcrypto: aead - Count error stats differently (diff)
downloadlinux-035d78a11c56828bb4923fa87eeb9ed2546d52bd.tar.gz
linux-035d78a11c56828bb4923fa87eeb9ed2546d52bd.tar.bz2
linux-035d78a11c56828bb4923fa87eeb9ed2546d52bd.zip
crypto: akcipher - Count error stats differently
Move all stat code specific to akcipher into the akcipher 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/ahash.c')
0 files changed, 0 insertions, 0 deletions