Lines Matching refs:req
53 static int cbc_aes_nx_crypt(struct skcipher_request *req,
56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
71 to_process = req->cryptlen - processed;
73 rc = nx_build_sg_lists(nx_ctx, req->iv, req->dst, req->src,
85 req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP);
89 memcpy(req->iv, csbcpb->cpb.aes_cbc.cv, AES_BLOCK_SIZE);
95 } while (processed < req->cryptlen);
101 static int cbc_aes_nx_encrypt(struct skcipher_request *req)
103 return cbc_aes_nx_crypt(req, 1);
106 static int cbc_aes_nx_decrypt(struct skcipher_request *req)
108 return cbc_aes_nx_crypt(req, 0);