• Home
  • Raw
  • Download

Lines Matching refs:sk_req

819 	struct skcipher_request *sq = req->c_req.sk_req;  in sec_skcipher_sgl_map()
826 struct skcipher_request *sq = req->c_req.sk_req; in sec_skcipher_sgl_unmap()
978 struct skcipher_request *sk_req = req->c_req.sk_req; in sec_skcipher_copy_iv() local
981 memcpy(c_req->c_ivin, sk_req->iv, ctx->c_ctx.ivsize); in sec_skcipher_copy_iv()
1039 struct skcipher_request *sk_req = req->c_req.sk_req; in sec_update_iv() local
1047 sgl = alg_type == SEC_SKCIPHER ? sk_req->dst : aead_req->dst; in sec_update_iv()
1049 sgl = alg_type == SEC_SKCIPHER ? sk_req->src : aead_req->src; in sec_update_iv()
1052 iv = sk_req->iv; in sec_update_iv()
1053 cryptlen = sk_req->cryptlen; in sec_update_iv()
1086 struct skcipher_request *sk_req = req->c_req.sk_req; in sec_skcipher_callback() local
1102 backlog_sk_req = backlog_req->c_req.sk_req; in sec_skcipher_callback()
1109 sk_req->base.complete(&sk_req->base, err); in sec_skcipher_callback()
1270 memcpy(req->c_req.sk_req->iv, c_req->c_ivin, in sec_process()
1410 struct skcipher_request *sk_req = sreq->c_req.sk_req; in sec_skcipher_param_check() local
1414 if (unlikely(!sk_req->src || !sk_req->dst)) { in sec_skcipher_param_check()
1418 sreq->c_req.c_len = sk_req->cryptlen; in sec_skcipher_param_check()
1420 if (ctx->pbuf_supported && sk_req->cryptlen <= SEC_PBUF_SZ) in sec_skcipher_param_check()
1426 if (unlikely(sk_req->cryptlen & (DES3_EDE_BLOCK_SIZE - 1))) { in sec_skcipher_param_check()
1432 if (unlikely(sk_req->cryptlen & (AES_BLOCK_SIZE - 1))) { in sec_skcipher_param_check()
1443 static int sec_skcipher_crypto(struct skcipher_request *sk_req, bool encrypt) in sec_skcipher_crypto() argument
1445 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(sk_req); in sec_skcipher_crypto()
1446 struct sec_req *req = skcipher_request_ctx(sk_req); in sec_skcipher_crypto()
1450 if (!sk_req->cryptlen) in sec_skcipher_crypto()
1453 req->flag = sk_req->base.flags; in sec_skcipher_crypto()
1454 req->c_req.sk_req = sk_req; in sec_skcipher_crypto()
1465 static int sec_skcipher_encrypt(struct skcipher_request *sk_req) in sec_skcipher_encrypt() argument
1467 return sec_skcipher_crypto(sk_req, true); in sec_skcipher_encrypt()
1470 static int sec_skcipher_decrypt(struct skcipher_request *sk_req) in sec_skcipher_decrypt() argument
1472 return sec_skcipher_crypto(sk_req, false); in sec_skcipher_decrypt()