Lines Matching refs:sk_req
1056 struct skcipher_request *sq = req->c_req.sk_req; in sec_skcipher_sgl_map()
1063 struct skcipher_request *sq = req->c_req.sk_req; in sec_skcipher_sgl_unmap()
1269 struct skcipher_request *sk_req = req->c_req.sk_req; in sec_skcipher_copy_iv() local
1272 memcpy(c_req->c_ivin, sk_req->iv, ctx->c_ctx.ivsize); in sec_skcipher_copy_iv()
1391 struct skcipher_request *sk_req = req->c_req.sk_req; in sec_update_iv() local
1399 sgl = alg_type == SEC_SKCIPHER ? sk_req->dst : aead_req->dst; in sec_update_iv()
1401 sgl = alg_type == SEC_SKCIPHER ? sk_req->src : aead_req->src; in sec_update_iv()
1404 iv = sk_req->iv; in sec_update_iv()
1405 cryptlen = sk_req->cryptlen; in sec_update_iv()
1445 struct skcipher_request *sk_req = req->c_req.sk_req; in sec_skcipher_callback() local
1462 backlog_sk_req = backlog_req->c_req.sk_req; in sec_skcipher_callback()
1468 sk_req->base.complete(&sk_req->base, err); in sec_skcipher_callback()
1803 memcpy(req->c_req.sk_req->iv, c_req->c_ivin, in sec_process()
2015 u32 cryptlen = sreq->c_req.sk_req->cryptlen; in sec_skcipher_cryptlen_ckeck()
2051 struct skcipher_request *sk_req = sreq->c_req.sk_req; in sec_skcipher_param_check() local
2055 if (unlikely(!sk_req->src || !sk_req->dst || in sec_skcipher_param_check()
2056 sk_req->cryptlen > MAX_INPUT_DATA_LEN)) { in sec_skcipher_param_check()
2060 sreq->c_req.c_len = sk_req->cryptlen; in sec_skcipher_param_check()
2062 if (ctx->pbuf_supported && sk_req->cryptlen <= SEC_PBUF_SZ) in sec_skcipher_param_check()
2068 if (unlikely(sk_req->cryptlen & (DES3_EDE_BLOCK_SIZE - 1))) { in sec_skcipher_param_check()
2112 static int sec_skcipher_crypto(struct skcipher_request *sk_req, bool encrypt) in sec_skcipher_crypto() argument
2114 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(sk_req); in sec_skcipher_crypto()
2115 struct sec_req *req = skcipher_request_ctx(sk_req); in sec_skcipher_crypto()
2119 if (!sk_req->cryptlen) { in sec_skcipher_crypto()
2125 req->flag = sk_req->base.flags; in sec_skcipher_crypto()
2126 req->c_req.sk_req = sk_req; in sec_skcipher_crypto()
2135 return sec_skcipher_soft_crypto(ctx, sk_req, encrypt); in sec_skcipher_crypto()
2140 static int sec_skcipher_encrypt(struct skcipher_request *sk_req) in sec_skcipher_encrypt() argument
2142 return sec_skcipher_crypto(sk_req, true); in sec_skcipher_encrypt()
2145 static int sec_skcipher_decrypt(struct skcipher_request *sk_req) in sec_skcipher_decrypt() argument
2147 return sec_skcipher_crypto(sk_req, false); in sec_skcipher_decrypt()