Lines Matching refs:req
60 * skcipher_request_set_crypt(req, &sg, &sg, ptlen, iv);
74 * skcipher_request_set_crypt(req, &sg, &sg, ctlen, iv);
123 static int crypto_kw_decrypt(struct skcipher_request *req)
125 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
129 u64 t = 6 * ((req->cryptlen) >> 3);
137 if (req->cryptlen < (2 * SEMIBSIZE) || req->cryptlen % SEMIBSIZE)
141 memcpy(&block.A, req->iv, SEMIBSIZE);
145 * first loop, src points to req->src and dst to req->dst. For any
146 * subsequent round, the code operates on req->dst only.
148 src = req->src;
149 dst = req->dst;
153 unsigned int nbytes = req->cryptlen;
179 src = req->dst;
180 dst = req->dst;
192 static int crypto_kw_encrypt(struct skcipher_request *req)
194 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
207 if (req->cryptlen < (2 * SEMIBSIZE) || req->cryptlen % SEMIBSIZE)
218 * first loop, src points to req->src and dst to req->dst. For any
219 * subsequent round, the code operates on req->dst only.
221 src = req->src;
222 dst = req->dst;
226 unsigned int nbytes = req->cryptlen;
251 src = req->dst;
252 dst = req->dst;
256 memcpy(req->iv, &block.A, SEMIBSIZE);