Lines Matching refs:req
99 static int crypto_ctr_crypt(struct skcipher_request *req)
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
108 err = skcipher_walk_virt(&walk, req, false);
190 static int crypto_rfc3686_crypt(struct skcipher_request *req)
192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
197 (void *)PTR_ALIGN((u8 *)skcipher_request_ctx(req), align + 1);
203 memcpy(iv + CTR_RFC3686_NONCE_SIZE, req->iv, CTR_RFC3686_IV_SIZE);
210 skcipher_request_set_callback(subreq, req->base.flags,
211 req->base.complete, req->base.data);
212 skcipher_request_set_crypt(subreq, req->src, req->dst,
213 req->cryptlen, iv);