Lines Matching refs:nkreq

53 	struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq);  in free_src_sglist()  local
55 kfree(nkreq->src); in free_src_sglist()
60 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_dst_sglist() local
62 kfree(nkreq->dst); in free_dst_sglist()
82 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_cbc_cipher_callback() local
92 if (nkreq->creq.ctrl.s.arg == ENCRYPT) { in nitrox_cbc_cipher_callback()
100 memcpy(skreq->iv, nkreq->iv_out, ivsize); in nitrox_cbc_cipher_callback()
101 kfree(nkreq->iv_out); in nitrox_cbc_cipher_callback()
210 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in alloc_src_sglist() local
215 ret = alloc_src_req_buf(nkreq, nents, ivsize); in alloc_src_sglist()
219 nitrox_creq_copy_iv(nkreq->src, skreq->iv, ivsize); in alloc_src_sglist()
220 nitrox_creq_set_src_sg(nkreq, nents, ivsize, skreq->src, in alloc_src_sglist()
228 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in alloc_dst_sglist() local
235 ret = alloc_dst_req_buf(nkreq, nents); in alloc_dst_sglist()
239 nitrox_creq_set_orh(nkreq); in alloc_dst_sglist()
240 nitrox_creq_set_comp(nkreq); in alloc_dst_sglist()
241 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, skreq->dst, in alloc_dst_sglist()
251 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_skcipher_crypt() local
256 creq = &nkreq->creq; in nitrox_skcipher_crypt()
292 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_cbc_decrypt() local
302 nkreq->iv_out = kmalloc(ivsize, flags); in nitrox_cbc_decrypt()
303 if (!nkreq->iv_out) in nitrox_cbc_decrypt()
306 scatterwalk_map_and_copy(nkreq->iv_out, skreq->src, start, ivsize, 0); in nitrox_cbc_decrypt()