Lines Matching refs:req
199 static int ghash_async_init(struct ahash_request *req)
201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
203 struct ahash_request *cryptd_req = ahash_request_ctx(req);
212 static int ghash_async_update(struct ahash_request *req)
214 struct ahash_request *cryptd_req = ahash_request_ctx(req);
215 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
221 memcpy(cryptd_req, req, sizeof(*req));
226 return shash_ahash_update(req, desc);
230 static int ghash_async_final(struct ahash_request *req)
232 struct ahash_request *cryptd_req = ahash_request_ctx(req);
233 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
239 memcpy(cryptd_req, req, sizeof(*req));
244 return crypto_shash_final(desc, req->result);
248 static int ghash_async_digest(struct ahash_request *req)
250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
252 struct ahash_request *cryptd_req = ahash_request_ctx(req);
257 memcpy(cryptd_req, req, sizeof(*req));
265 return shash_ahash_digest(req, desc);
269 static int ghash_async_import(struct ahash_request *req, const void *in)
271 struct ahash_request *cryptd_req = ahash_request_ctx(req);
272 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
281 static int ghash_async_export(struct ahash_request *req, void *out)
283 struct ahash_request *cryptd_req = ahash_request_ctx(req);