diff options
author | Eric Biggers <ebiggers@google.com> | 2020-02-26 07:59:18 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-06 04:28:23 +0300 |
commit | 959ac1cdd630b48fad3d8f47c96a01bfc3d71377 (patch) | |
tree | 31212ed46f7037820004153203b68f0e03df61e2 /crypto/fips.c | |
parent | 3ff2bab82f42e05f39c77566f23ccbe5693f7982 (diff) | |
download | linux-959ac1cdd630b48fad3d8f47c96a01bfc3d71377.tar.xz |
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/fips.c')
0 files changed, 0 insertions, 0 deletions