diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-17 15:32:30 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-18 17:01:11 +0800 |
commit | aa0bfc9cee13677f110cfb870f7b5d9cd60cf5a7 (patch) | |
tree | eed90d052db5c9142320586ac102d0d896e54f25 /crypto/crypto_wq.c | |
parent | f960b5ebd9ed09bc12e10c712bce82ab58ef0435 (diff) | |
download | linux-crypto-aa0bfc9cee13677f110cfb870f7b5d9cd60cf5a7.tar.gz linux-crypto-aa0bfc9cee13677f110cfb870f7b5d9cd60cf5a7.zip |
crypto: authencesn - Fix digest_null crash
When authencesn is used together with digest_null a crash will
occur on the decrypt path. This is because normally we perform
a special setup to preserve the ESN, but this is skipped if there
is no authentication. However, on the post-authentication path
it always expects the preservation to be in place, thus causing
a crash when digest_null is used.
This patch fixes this by also skipping the post-processing when
there is no authentication.
Fixes: 3c481edeec50 ("crypto: authencesn - Convert to new AEAD...")
Cc: <stable@vger.kernel.org>
Reported-by: Jan Tluka <jtluka@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions