Lines Matching refs:sk_req

1054 	struct skcipher_request *sq = req->c_req.sk_req;  in sec_skcipher_sgl_map()
1061 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()
1467 skcipher_request_complete(sk_req, err); in sec_skcipher_callback()
1801 memcpy(req->c_req.sk_req->iv, c_req->c_ivin, in sec_process()
2013 u32 cryptlen = sreq->c_req.sk_req->cryptlen; in sec_skcipher_cryptlen_check()
2047 struct skcipher_request *sk_req = sreq->c_req.sk_req; in sec_skcipher_param_check() local
2051 if (unlikely(!sk_req->src || !sk_req->dst || in sec_skcipher_param_check()
2052 sk_req->cryptlen > MAX_INPUT_DATA_LEN)) { in sec_skcipher_param_check()
2056 sreq->c_req.c_len = sk_req->cryptlen; in sec_skcipher_param_check()
2058 if (ctx->pbuf_supported && sk_req->cryptlen <= SEC_PBUF_SZ) in sec_skcipher_param_check()
2064 if (unlikely(sk_req->cryptlen & (DES3_EDE_BLOCK_SIZE - 1))) { in sec_skcipher_param_check()
2108 static int sec_skcipher_crypto(struct skcipher_request *sk_req, bool encrypt) in sec_skcipher_crypto() argument
2110 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(sk_req); in sec_skcipher_crypto()
2111 struct sec_req *req = skcipher_request_ctx(sk_req); in sec_skcipher_crypto()
2115 if (!sk_req->cryptlen) { in sec_skcipher_crypto()
2121 req->flag = sk_req->base.flags; in sec_skcipher_crypto()
2122 req->c_req.sk_req = sk_req; in sec_skcipher_crypto()
2131 return sec_skcipher_soft_crypto(ctx, sk_req, encrypt); in sec_skcipher_crypto()
2136 static int sec_skcipher_encrypt(struct skcipher_request *sk_req) in sec_skcipher_encrypt() argument
2138 return sec_skcipher_crypto(sk_req, true); in sec_skcipher_encrypt()
2141 static int sec_skcipher_decrypt(struct skcipher_request *sk_req) in sec_skcipher_decrypt() argument
2143 return sec_skcipher_crypto(sk_req, false); in sec_skcipher_decrypt()