diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-02-16 18:35:11 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-03-14 17:06:41 +0800 |
commit | 0df4adf8682a017e43579ac8c9ec1a31c538e940 (patch) | |
tree | d27c0800efad1dfd15ac24fba0233f2eb160f95d /crypto/rmd160.c | |
parent | ed0733eaa579c49dbfeaec14d4071a69a49fdde4 (diff) | |
download | lwn-0df4adf8682a017e43579ac8c9ec1a31c538e940.tar.gz lwn-0df4adf8682a017e43579ac8c9ec1a31c538e940.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/rmd160.c')
0 files changed, 0 insertions, 0 deletions