Lines Matching refs:tfm
204 struct crypto_akcipher *tfm; in software_key_query() local
216 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in software_key_query()
217 if (IS_ERR(tfm)) in software_key_query()
218 return PTR_ERR(tfm); in software_key_query()
231 ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); in software_key_query()
233 ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); in software_key_query()
237 len = crypto_akcipher_maxsize(tfm); in software_key_query()
253 crypto_free_akcipher(tfm); in software_key_query()
266 struct crypto_akcipher *tfm; in software_key_eds_op() local
281 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in software_key_eds_op()
282 if (IS_ERR(tfm)) in software_key_eds_op()
283 return PTR_ERR(tfm); in software_key_eds_op()
285 req = akcipher_request_alloc(tfm, GFP_KERNEL); in software_key_eds_op()
301 ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); in software_key_eds_op()
303 ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); in software_key_eds_op()
340 crypto_free_akcipher(tfm); in software_key_eds_op()
352 struct crypto_akcipher *tfm; in public_key_verify_signature() local
371 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in public_key_verify_signature()
372 if (IS_ERR(tfm)) in public_key_verify_signature()
373 return PTR_ERR(tfm); in public_key_verify_signature()
376 req = akcipher_request_alloc(tfm, GFP_KERNEL); in public_key_verify_signature()
392 ret = crypto_akcipher_set_priv_key(tfm, key, pkey->keylen); in public_key_verify_signature()
394 ret = crypto_akcipher_set_pub_key(tfm, key, pkey->keylen); in public_key_verify_signature()
414 crypto_free_akcipher(tfm); in public_key_verify_signature()