public_key: Don't erroneously call akcipher_verify
Subsystems (3)
PATCH 2/2 public_key: Don't erroneously call akcipher_verify
The code in software_key_eds_op was already calling the relevant akcipher_* operation. So the call to akcipher_verify was an error (likely due to a copy-paste oversight).
Fixes 92daec927531 KEYS: Implement encrypt, decrypt and sign for software asymmetric key
Signed-off-by Denis Kenzior <[email protected]>
--- crypto/asymmetric_keys/public_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/public_key.c +1 -1
@@ -206,7 +206,7 @@ static int software_key_eds_op(struct kernel_pkey_params *params,BUG (); } - ret =crypto_wait_req (crypto_akcipher_verify (req), &cwait); + ret =crypto_wait_req (ret, &cwait);if (ret =0 ) ret = req->dst_len;
Signature · 1 line
2.16.1