diff options
author | Eric Biggers <ebiggers@google.com> | 2020-02-26 07:59:23 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-06 04:28:24 +0300 |
commit | 0708bb435354aede92819d44563d3113c7180cf0 (patch) | |
tree | bdb190201cdd972adf7d904a86d732f14ea15b42 /block | |
parent | 07b24c7c08bdc2d36de10881a17145426f47742b (diff) | |
download | linux-0708bb435354aede92819d44563d3113c7180cf0.tar.xz |
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 'block')
0 files changed, 0 insertions, 0 deletions