summaryrefslogtreecommitdiff
path: root/crypto/geniv.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-02-25 20:59:19 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2020-03-06 12:28:23 +1100
commit4c4be75b5a4b400ad1184316f143d4519c5921d9 (patch)
tree5f3e4d2cf2cbee09736a832664c25b649100aa15 /crypto/geniv.c
parenta6e17228813cd65850656c0f090bc2e3dd35592c (diff)
downloadlinux-crypto-4c4be75b5a4b400ad1184316f143d4519c5921d9.tar.gz
linux-crypto-4c4be75b5a4b400ad1184316f143d4519c5921d9.zip
crypto: gcm - simplify error handling in crypto_rfc4543_create()
Simplify the error handling in crypto_rfc4543_create() by taking advantage of crypto_grab_aead() now handling an ERR_PTR() name and by taking advantage of crypto_drop_aead() now accepting (as a no-op) a spawn that hasn't been grabbed yet. Conveniently, this eliminates the 'ccm_name' variable which was incorrectly named (it should have been 'gcm_name'). Also fix a weird case where a line was terminated by a comma rather than a semicolon, causing the statement to be continued on the next line. Fortunately the code still behaved as intended, though. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/geniv.c')
0 files changed, 0 insertions, 0 deletions