Searched hist:"959 ac1cd" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/crypto/ |
H A D | gcm.c | 959ac1cd Tue Feb 25 22:59:18 CST 2020 Eric Biggers <ebiggers@google.com> 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> 959ac1cd Tue Feb 25 22:59:18 CST 2020 Eric Biggers <ebiggers@google.com> 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>
|