diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-17 09:32:30 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-18 11:01:11 +0200 |
commit | 41cdf7a45389e01991ee31e3301ed83cb3e3f7dc (patch) | |
tree | df34fc42687bb28c8d800fb71bb6b0bf1eaa1973 /crypto/rmd256.c | |
parent | crypto: brcm - remove BCM_PDC_MBOX dependency in Kconfig (diff) | |
download | linux-41cdf7a45389e01991ee31e3301ed83cb3e3f7dc.tar.xz linux-41cdf7a45389e01991ee31e3301ed83cb3e3f7dc.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: 104880a6b470 ("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