Lines Matching refs:req
60 * skcipher_request_set_crypt(req, &sg, &sg, ptlen, iv);
74 * skcipher_request_set_crypt(req, &sg, &sg, ctlen, iv);
124 static int crypto_kw_decrypt(struct skcipher_request *req)
126 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
130 u64 t = 6 * ((req->cryptlen) >> 3);
138 if (req->cryptlen < (2 * SEMIBSIZE) || req->cryptlen % SEMIBSIZE)
142 memcpy(&block.A, req->iv, SEMIBSIZE);
146 * first loop, src points to req->src and dst to req->dst. For any
147 * subsequent round, the code operates on req->dst only.
149 src = req->src;
150 dst = req->dst;
154 unsigned int nbytes = req->cryptlen;
180 src = req->dst;
181 dst = req->dst;
193 static int crypto_kw_encrypt(struct skcipher_request *req)
195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
208 if (req->cryptlen < (2 * SEMIBSIZE) || req->cryptlen % SEMIBSIZE)
219 * first loop, src points to req->src and dst to req->dst. For any
220 * subsequent round, the code operates on req->dst only.
222 src = req->src;
223 dst = req->dst;
227 unsigned int nbytes = req->cryptlen;
252 src = req->dst;
253 dst = req->dst;
257 memcpy(req->iv, &block.A, SEMIBSIZE);