Lines Matching refs:req
392 struct skcipher_request *req; in init_skcipher_req() local
410 req = skcipher_request_alloc(tfm, GFP_KERNEL); in init_skcipher_req()
411 if (!req) { in init_skcipher_req()
418 skcipher_request_set_callback(req, 0, NULL, NULL); in init_skcipher_req()
419 return req; in init_skcipher_req()
465 struct skcipher_request *req; in derived_key_encrypt() local
472 req = init_skcipher_req(derived_key, derived_keylen); in derived_key_encrypt()
473 ret = PTR_ERR(req); in derived_key_encrypt()
474 if (IS_ERR(req)) in derived_key_encrypt()
487 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_encrypt()
488 ret = crypto_skcipher_encrypt(req); in derived_key_encrypt()
489 tfm = crypto_skcipher_reqtfm(req); in derived_key_encrypt()
490 skcipher_request_free(req); in derived_key_encrypt()
567 struct skcipher_request *req; in derived_key_decrypt() local
579 req = init_skcipher_req(derived_key, derived_keylen); in derived_key_decrypt()
580 ret = PTR_ERR(req); in derived_key_decrypt()
581 if (IS_ERR(req)) in derived_key_decrypt()
593 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_decrypt()
594 ret = crypto_skcipher_decrypt(req); in derived_key_decrypt()
595 tfm = crypto_skcipher_reqtfm(req); in derived_key_decrypt()
596 skcipher_request_free(req); in derived_key_decrypt()