diff options
author | Eric Biggers <ebiggers@google.com> | 2020-02-25 20:59:23 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-06 12:28:24 +1100 |
commit | b25af79b4b897b4b0e5b4db37cbdff6d718180ea (patch) | |
tree | 4b5ee9150680981489b07b2807e346d147099d66 /crypto/asymmetric_keys/pkcs8_parser.c | |
parent | ced8d75b733275bd504796a24208208f0da94403 (diff) | |
download | linux-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/asymmetric_keys/pkcs8_parser.c')
0 files changed, 0 insertions, 0 deletions