Lines Matching refs:ret
110 int ret, len; in software_key_query() local
112 ret = software_key_determine_akcipher(params->encoding, in software_key_query()
115 if (ret < 0) in software_key_query()
116 return ret; in software_key_query()
133 ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); in software_key_query()
135 ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); in software_key_query()
136 if (ret < 0) in software_key_query()
150 ret = 0; in software_key_query()
156 pr_devel("<==%s() = %d\n", __func__, ret); in software_key_query()
157 return ret; in software_key_query()
173 int ret; in software_key_eds_op() local
177 ret = software_key_determine_akcipher(params->encoding, in software_key_eds_op()
180 if (ret < 0) in software_key_eds_op()
181 return ret; in software_key_eds_op()
187 ret = -ENOMEM; in software_key_eds_op()
204 ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); in software_key_eds_op()
206 ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); in software_key_eds_op()
207 if (ret) in software_key_eds_op()
222 ret = crypto_akcipher_encrypt(req); in software_key_eds_op()
225 ret = crypto_akcipher_decrypt(req); in software_key_eds_op()
228 ret = crypto_akcipher_sign(req); in software_key_eds_op()
234 ret = crypto_wait_req(ret, &cwait); in software_key_eds_op()
235 if (ret == 0) in software_key_eds_op()
236 ret = req->dst_len; in software_key_eds_op()
244 pr_devel("<==%s() = %d\n", __func__, ret); in software_key_eds_op()
245 return ret; in software_key_eds_op()
260 int ret; in public_key_verify_signature() local
268 ret = software_key_determine_akcipher(sig->encoding, in public_key_verify_signature()
271 if (ret < 0) in public_key_verify_signature()
272 return ret; in public_key_verify_signature()
278 ret = -ENOMEM; in public_key_verify_signature()
295 ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); in public_key_verify_signature()
297 ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); in public_key_verify_signature()
298 if (ret) in public_key_verify_signature()
310 ret = crypto_wait_req(crypto_akcipher_verify(req), &cwait); in public_key_verify_signature()
318 pr_devel("<==%s() = %d\n", __func__, ret); in public_key_verify_signature()
319 if (WARN_ON_ONCE(ret > 0)) in public_key_verify_signature()
320 ret = -EINVAL; in public_key_verify_signature()
321 return ret; in public_key_verify_signature()