Lines Matching refs:req
124 static int crypto_kw_decrypt(struct skcipher_request *req) in crypto_kw_decrypt() argument
126 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_kw_decrypt()
130 u64 t = 6 * ((req->cryptlen) >> 3); in crypto_kw_decrypt()
138 if (req->cryptlen < (2 * SEMIBSIZE) || req->cryptlen % SEMIBSIZE) in crypto_kw_decrypt()
142 memcpy(&block.A, req->iv, SEMIBSIZE); in crypto_kw_decrypt()
149 src = req->src; in crypto_kw_decrypt()
150 dst = req->dst; in crypto_kw_decrypt()
154 unsigned int nbytes = req->cryptlen; in crypto_kw_decrypt()
180 src = req->dst; in crypto_kw_decrypt()
181 dst = req->dst; in crypto_kw_decrypt()
193 static int crypto_kw_encrypt(struct skcipher_request *req) in crypto_kw_encrypt() argument
195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_kw_encrypt()
208 if (req->cryptlen < (2 * SEMIBSIZE) || req->cryptlen % SEMIBSIZE) in crypto_kw_encrypt()
222 src = req->src; in crypto_kw_encrypt()
223 dst = req->dst; in crypto_kw_encrypt()
227 unsigned int nbytes = req->cryptlen; in crypto_kw_encrypt()
252 src = req->dst; in crypto_kw_encrypt()
253 dst = req->dst; in crypto_kw_encrypt()
257 memcpy(req->iv, &block.A, SEMIBSIZE); in crypto_kw_encrypt()