Lines Matching refs:req
155 int (*init)(struct ahash_request *req);
156 int (*update)(struct ahash_request *req);
157 int (*final)(struct ahash_request *req);
158 int (*finup)(struct ahash_request *req);
159 int (*digest)(struct ahash_request *req);
160 int (*export)(struct ahash_request *req, void *out);
161 int (*import)(struct ahash_request *req, const void *in);
162 int (*export_core)(struct ahash_request *req, void *out);
163 int (*import_core)(struct ahash_request *req, const void *in);
286 static inline bool ahash_req_on_stack(struct ahash_request *req) in ahash_req_on_stack() argument
288 return crypto_req_on_stack(&req->base); in ahash_req_on_stack()
435 struct ahash_request *req) in crypto_ahash_reqtfm() argument
437 return __crypto_ahash_cast(req->base.tfm); in crypto_ahash_reqtfm()
451 static inline void *ahash_request_ctx(struct ahash_request *req) in ahash_request_ctx() argument
453 return req->__ctx; in ahash_request_ctx()
481 int crypto_ahash_finup(struct ahash_request *req);
498 static inline int crypto_ahash_final(struct ahash_request *req) in crypto_ahash_final() argument
500 req->nbytes = 0; in crypto_ahash_final()
501 return crypto_ahash_finup(req); in crypto_ahash_final()
515 int crypto_ahash_digest(struct ahash_request *req);
528 int crypto_ahash_export(struct ahash_request *req, void *out);
541 int crypto_ahash_import(struct ahash_request *req, const void *in);
554 int crypto_ahash_init(struct ahash_request *req);
567 int crypto_ahash_update(struct ahash_request *req);
588 static inline void ahash_request_set_tfm(struct ahash_request *req, in ahash_request_set_tfm() argument
591 crypto_request_set_tfm(&req->base, crypto_ahash_tfm(tfm)); in ahash_request_set_tfm()
609 struct ahash_request *req; in ahash_request_alloc_noprof() local
611 req = kmalloc_noprof(sizeof(struct ahash_request) + in ahash_request_alloc_noprof()
614 if (likely(req)) in ahash_request_alloc_noprof()
615 ahash_request_set_tfm(req, tfm); in ahash_request_alloc_noprof()
617 return req; in ahash_request_alloc_noprof()
625 void ahash_request_free(struct ahash_request *req);
627 static inline void ahash_request_zero(struct ahash_request *req) in ahash_request_zero() argument
629 memzero_explicit(req, sizeof(*req) + in ahash_request_zero()
630 crypto_ahash_reqsize(crypto_ahash_reqtfm(req))); in ahash_request_zero()
634 struct crypto_async_request *req) in ahash_request_cast() argument
636 return container_of(req, struct ahash_request, base); in ahash_request_cast()
664 static inline void ahash_request_set_callback(struct ahash_request *req, in ahash_request_set_callback() argument
670 flags |= req->base.flags & CRYPTO_AHASH_REQ_PRIVATE; in ahash_request_set_callback()
671 crypto_request_set_callback(&req->base, flags, compl, data); in ahash_request_set_callback()
687 static inline void ahash_request_set_crypt(struct ahash_request *req, in ahash_request_set_crypt() argument
691 req->src = src; in ahash_request_set_crypt()
692 req->nbytes = nbytes; in ahash_request_set_crypt()
693 req->result = result; in ahash_request_set_crypt()
694 req->base.flags &= ~CRYPTO_AHASH_REQ_VIRT; in ahash_request_set_crypt()
710 static inline void ahash_request_set_virt(struct ahash_request *req, in ahash_request_set_virt() argument
714 req->svirt = src; in ahash_request_set_virt()
715 req->nbytes = nbytes; in ahash_request_set_virt()
716 req->result = result; in ahash_request_set_virt()
717 req->base.flags |= CRYPTO_AHASH_REQ_VIRT; in ahash_request_set_virt()
1030 struct ahash_request *req = (void *)buf; in ahash_request_on_stack_init() local
1032 crypto_stack_request_init(&req->base, crypto_ahash_tfm(tfm)); in ahash_request_on_stack_init()
1033 return req; in ahash_request_on_stack_init()
1037 struct ahash_request *req, size_t total, gfp_t gfp) in ahash_request_clone() argument
1039 return container_of(crypto_request_clone(&req->base, total, gfp), in ahash_request_clone()