summaryrefslogtreecommitdiff
path: root/crypto/ecb.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-02-25 20:59:23 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2020-03-06 12:28:24 +1100
commitb25af79b4b897b4b0e5b4db37cbdff6d718180ea (patch)
tree4b5ee9150680981489b07b2807e346d147099d66 /crypto/ecb.c
parentced8d75b733275bd504796a24208208f0da94403 (diff)
downloadlinux-crypto-b25af79b4b897b4b0e5b4db37cbdff6d718180ea.tar.gz
linux-crypto-b25af79b4b897b4b0e5b4db37cbdff6d718180ea.zip
crypto: rsa-pkcs1pad - simplify error handling in pkcs1pad_create()
Simplify the error handling in pkcs1pad_create() by taking advantage of crypto_grab_akcipher() now handling an ERR_PTR() name and by taking advantage of crypto_drop_akcipher() now accepting (as a no-op) a spawn that hasn't been grabbed yet. While we're at it, also simplify the way the hash_name optional argument is handled. We only need to check whether it's present in one place, and we can just assign directly to ctx->digest_info. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecb.c')
0 files changed, 0 insertions, 0 deletions