Lines Matching refs:req
42 static void eseqiv_complete2(struct skcipher_givcrypt_request *req) in eseqiv_complete2() argument
44 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); in eseqiv_complete2()
45 struct eseqiv_request_ctx *reqctx = skcipher_givcrypt_reqctx(req); in eseqiv_complete2()
47 memcpy(req->giv, PTR_ALIGN((u8 *)reqctx->tail, in eseqiv_complete2()
54 struct skcipher_givcrypt_request *req = base->data; in eseqiv_complete() local
59 eseqiv_complete2(req); in eseqiv_complete()
62 skcipher_givcrypt_complete(req, err); in eseqiv_complete()
79 static int eseqiv_givencrypt(struct skcipher_givcrypt_request *req) in eseqiv_givencrypt() argument
81 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); in eseqiv_givencrypt()
83 struct eseqiv_request_ctx *reqctx = skcipher_givcrypt_reqctx(req); in eseqiv_givencrypt()
102 giv = req->giv; in eseqiv_givencrypt()
103 complete = req->creq.base.complete; in eseqiv_givencrypt()
104 data = req->creq.base.data; in eseqiv_givencrypt()
106 osrc = req->creq.src; in eseqiv_givencrypt()
107 odst = req->creq.dst; in eseqiv_givencrypt()
119 data = req; in eseqiv_givencrypt()
122 ablkcipher_request_set_callback(subreq, req->creq.base.flags, complete, in eseqiv_givencrypt()
139 req->creq.nbytes + ivsize, in eseqiv_givencrypt()
140 req->creq.info); in eseqiv_givencrypt()
142 memcpy(req->creq.info, ctx->salt, ivsize); in eseqiv_givencrypt()
146 memset(req->giv, 0, ivsize - sizeof(u64)); in eseqiv_givencrypt()
149 seq = cpu_to_be64(req->seq); in eseqiv_givencrypt()
150 memcpy(req->giv + ivsize - len, &seq, len); in eseqiv_givencrypt()
156 eseqiv_complete2(req); in eseqiv_givencrypt()
162 static int eseqiv_givencrypt_first(struct skcipher_givcrypt_request *req) in eseqiv_givencrypt_first() argument
164 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); in eseqiv_givencrypt_first()
182 return eseqiv_givencrypt(req); in eseqiv_givencrypt_first()