Lines Matching refs:req

154 	int (*encrypt)(struct skcipher_request *req);
155 int (*decrypt)(struct skcipher_request *req);
156 int (*export)(struct skcipher_request *req, void *out);
157 int (*import)(struct skcipher_request *req, const void *in);
676 struct skcipher_request *req) in crypto_skcipher_reqtfm() argument
678 return __crypto_skcipher_cast(req->base.tfm); in crypto_skcipher_reqtfm()
682 struct skcipher_request *req) in crypto_sync_skcipher_reqtfm() argument
684 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_sync_skcipher_reqtfm()
700 int crypto_skcipher_encrypt(struct skcipher_request *req);
713 int crypto_skcipher_decrypt(struct skcipher_request *req);
731 int crypto_skcipher_export(struct skcipher_request *req, void *out);
746 int crypto_skcipher_import(struct skcipher_request *req, const void *in);
817 static inline void skcipher_request_set_tfm(struct skcipher_request *req, in skcipher_request_set_tfm() argument
820 req->base.tfm = crypto_skcipher_tfm(tfm); in skcipher_request_set_tfm()
823 static inline void skcipher_request_set_sync_tfm(struct skcipher_request *req, in skcipher_request_set_sync_tfm() argument
826 skcipher_request_set_tfm(req, &tfm->base); in skcipher_request_set_sync_tfm()
830 struct crypto_async_request *req) in skcipher_request_cast() argument
832 return container_of(req, struct skcipher_request, base); in skcipher_request_cast()
849 struct skcipher_request *req; in skcipher_request_alloc_noprof() local
851 req = kmalloc_noprof(sizeof(struct skcipher_request) + in skcipher_request_alloc_noprof()
854 if (likely(req)) in skcipher_request_alloc_noprof()
855 skcipher_request_set_tfm(req, tfm); in skcipher_request_alloc_noprof()
857 return req; in skcipher_request_alloc_noprof()
865 static inline void skcipher_request_free(struct skcipher_request *req) in skcipher_request_free() argument
867 kfree_sensitive(req); in skcipher_request_free()
870 static inline void skcipher_request_zero(struct skcipher_request *req) in skcipher_request_zero() argument
872 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_request_zero()
874 memzero_explicit(req, sizeof(*req) + crypto_skcipher_reqsize(tfm)); in skcipher_request_zero()
902 static inline void skcipher_request_set_callback(struct skcipher_request *req, in skcipher_request_set_callback() argument
907 req->base.complete = compl; in skcipher_request_set_callback()
908 req->base.data = data; in skcipher_request_set_callback()
909 req->base.flags = flags; in skcipher_request_set_callback()
929 struct skcipher_request *req, in skcipher_request_set_crypt() argument
933 req->src = src; in skcipher_request_set_crypt()
934 req->dst = dst; in skcipher_request_set_crypt()
935 req->cryptlen = cryptlen; in skcipher_request_set_crypt()
936 req->iv = iv; in skcipher_request_set_crypt()