diff options
author | Eric Biggers <ebiggers@google.com> | 2020-02-25 20:59:18 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-06 12:28:23 +1100 |
commit | a6e17228813cd65850656c0f090bc2e3dd35592c (patch) | |
tree | 93340f2ff8d335402b3c7892787f3e9f96010e2f /crypto/fcrypt.c | |
parent | be5320de1690765f2898cd455108b13a62434ae2 (diff) | |
download | linux-crypto-a6e17228813cd65850656c0f090bc2e3dd35592c.tar.gz linux-crypto-a6e17228813cd65850656c0f090bc2e3dd35592c.zip |
crypto: gcm - simplify error handling in crypto_rfc4106_create()
Simplify the error handling in crypto_rfc4106_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').
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/fcrypt.c')
0 files changed, 0 insertions, 0 deletions