Lines Matching refs:sreq

1962 	struct sec_req *sreq)  in sec_skcipher_cryptlen_ckeck()  argument
1964 u32 cryptlen = sreq->c_req.sk_req->cryptlen; in sec_skcipher_cryptlen_ckeck()
1998 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check() argument
2000 struct skcipher_request *sk_req = sreq->c_req.sk_req; in sec_skcipher_param_check()
2009 sreq->c_req.c_len = sk_req->cryptlen; in sec_skcipher_param_check()
2012 sreq->use_pbuf = true; in sec_skcipher_param_check()
2014 sreq->use_pbuf = false; in sec_skcipher_param_check()
2023 return sec_skcipher_cryptlen_ckeck(ctx, sreq); in sec_skcipher_param_check()
2032 struct skcipher_request *sreq, bool encrypt) in sec_skcipher_soft_crypto() argument
2048 skcipher_request_set_callback(subreq, sreq->base.flags, in sec_skcipher_soft_crypto()
2050 skcipher_request_set_crypt(subreq, sreq->src, sreq->dst, in sec_skcipher_soft_crypto()
2051 sreq->cryptlen, sreq->iv); in sec_skcipher_soft_crypto()
2199 static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_spec_check() argument
2201 struct aead_request *req = sreq->aead_req.aead_req; in sec_aead_spec_check()
2229 if (sreq->c_req.encrypt) in sec_aead_spec_check()
2230 sreq->c_req.c_len = req->cryptlen; in sec_aead_spec_check()
2232 sreq->c_req.c_len = req->cryptlen - authsize; in sec_aead_spec_check()
2234 if (unlikely(sreq->c_req.c_len & (AES_BLOCK_SIZE - 1))) { in sec_aead_spec_check()
2243 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check() argument
2245 struct aead_request *req = sreq->aead_req.aead_req; in sec_aead_param_check()
2257 if (unlikely(!req->cryptlen || (!sreq->c_req.encrypt && in sec_aead_param_check()
2271 if (unlikely(sec_aead_spec_check(ctx, sreq))) in sec_aead_param_check()
2276 sreq->use_pbuf = true; in sec_aead_param_check()
2278 sreq->use_pbuf = false; in sec_aead_param_check()