/drivers/crypto/ccp/ |
D | ccp-crypto-rsa.c | 52 req->dst_len = rctx->cmd.u.rsa.key_size >> 3; in ccp_rsa_complete() 61 return ctx->u.rsa.n_len; in ccp_rsa_maxsize() 75 rctx->cmd.u.rsa.key_size = ctx->u.rsa.key_len; /* in bits */ in ccp_rsa_crypt() 77 rctx->cmd.u.rsa.exp = &ctx->u.rsa.e_sg; in ccp_rsa_crypt() 78 rctx->cmd.u.rsa.exp_len = ctx->u.rsa.e_len; in ccp_rsa_crypt() 80 rctx->cmd.u.rsa.exp = &ctx->u.rsa.d_sg; in ccp_rsa_crypt() 81 rctx->cmd.u.rsa.exp_len = ctx->u.rsa.d_len; in ccp_rsa_crypt() 83 rctx->cmd.u.rsa.mod = &ctx->u.rsa.n_sg; in ccp_rsa_crypt() 84 rctx->cmd.u.rsa.mod_len = ctx->u.rsa.n_len; in ccp_rsa_crypt() 85 rctx->cmd.u.rsa.src = req->src; in ccp_rsa_crypt() [all …]
|
D | ccp-ops.c | 1817 struct ccp_rsa_engine *rsa = &cmd->u.rsa; in ccp_run_rsa_cmd() local 1824 if (rsa->key_size > cmd_q->ccp->vdata->rsamax) in ccp_run_rsa_cmd() 1827 if (!rsa->exp || !rsa->mod || !rsa->src || !rsa->dst) in ccp_run_rsa_cmd() 1842 o_len = 32 * ((rsa->key_size + 255) / 256); in ccp_run_rsa_cmd() 1870 ret = ccp_reverse_set_dm_area(&exp, 0, rsa->exp, 0, rsa->exp_len); in ccp_run_rsa_cmd() 1899 ret = ccp_reverse_set_dm_area(&src, 0, rsa->mod, 0, rsa->mod_len); in ccp_run_rsa_cmd() 1902 ret = ccp_reverse_set_dm_area(&src, o_len, rsa->src, 0, rsa->src_len); in ccp_run_rsa_cmd() 1919 op.u.rsa.mod_size = rsa->key_size; in ccp_run_rsa_cmd() 1920 op.u.rsa.input_len = i_len; in ccp_run_rsa_cmd() 1922 ret = cmd_q->ccp->vdata->perform->rsa(&op); in ccp_run_rsa_cmd() [all …]
|
D | Makefile | 20 ccp-crypto-rsa.o \
|
D | ccp-dev.h | 550 struct ccp_rsa_op rsa; member 656 int (*rsa)(struct ccp_op *); member
|
D | ccp-dev-v3.c | 238 | (op->u.rsa.mod_size << REQ1_RSA_MOD_SIZE_SHIFT) in ccp_perform_rsa() 241 cr[1] = op->u.rsa.input_len - 1; in ccp_perform_rsa() 573 .rsa = ccp_perform_rsa,
|
D | ccp-dev-v5.c | 119 } rsa; member 149 #define CCP_RSA_SIZE(p) ((p)->rsa.size) 468 CCP_RSA_SIZE(&function) = (op->u.rsa.mod_size + 7) >> 3; in ccp5_perform_rsa() 471 CCP5_CMD_LEN(&desc) = op->u.rsa.input_len; in ccp5_perform_rsa() 1092 .rsa = ccp5_perform_rsa,
|
D | ccp-crypto.h | 263 struct ccp_rsa_ctx rsa; member
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 396 struct rx_sa *rsa; in ixgbe_ipsec_find_rx_state() local 400 hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, in ixgbe_ipsec_find_rx_state() 402 if (rsa->mode & IXGBE_RXTXMOD_VF) in ixgbe_ipsec_find_rx_state() 404 if (spi == rsa->xs->id.spi && in ixgbe_ipsec_find_rx_state() 405 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbe_ipsec_find_rx_state() 406 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbe_ipsec_find_rx_state() 407 sizeof(rsa->xs->id.daddr.a6)))) && in ixgbe_ipsec_find_rx_state() 408 proto == rsa->xs->id.proto) { in ixgbe_ipsec_find_rx_state() 409 ret = rsa->xs; in ixgbe_ipsec_find_rx_state() 584 struct rx_sa rsa; in ixgbe_ipsec_add_sa() local [all …]
|
/drivers/crypto/qat/qat_common/ |
D | qat_asym_algs.c | 161 struct qat_rsa_input_params rsa; member 165 struct qat_rsa_output_params rsa; member 174 struct qat_rsa_ctx *rsa; member 178 struct akcipher_request *rsa; member 556 struct akcipher_request *areq = req->areq.rsa; in qat_rsa_cb() 557 struct device *dev = &GET_DEV(req->ctx.rsa->inst->accel_dev); in qat_rsa_cb() 564 dma_free_coherent(dev, req->ctx.rsa->key_sz, req->src_align, in qat_rsa_cb() 565 req->in.rsa.enc.m); in qat_rsa_cb() 567 dma_unmap_single(dev, req->in.rsa.enc.m, req->ctx.rsa->key_sz, in qat_rsa_cb() 570 areq->dst_len = req->ctx.rsa->key_sz; in qat_rsa_cb() [all …]
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 183 struct rx_sa *rsa; in ixgbevf_ipsec_find_rx_state() local 186 hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, in ixgbevf_ipsec_find_rx_state() 188 if (spi == rsa->xs->id.spi && in ixgbevf_ipsec_find_rx_state() 189 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbevf_ipsec_find_rx_state() 190 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbevf_ipsec_find_rx_state() 191 sizeof(rsa->xs->id.daddr.a6)))) && in ixgbevf_ipsec_find_rx_state() 192 proto == rsa->xs->id.proto) { in ixgbevf_ipsec_find_rx_state() 193 ret = rsa->xs; in ixgbevf_ipsec_find_rx_state() 276 struct rx_sa rsa; in ixgbevf_ipsec_add_sa() local 291 memset(&rsa, 0, sizeof(rsa)); in ixgbevf_ipsec_add_sa() [all …]
|
/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_fw.c | 61 u32 rsa[UOS_RSA_SCRATCH_COUNT]; in guc_xfer_rsa() local 65 copied = intel_uc_fw_copy_rsa(guc_fw, rsa, sizeof(rsa)); in guc_xfer_rsa() 66 GEM_BUG_ON(copied < sizeof(rsa)); in guc_xfer_rsa() 69 intel_uncore_write(uncore, UOS_RSA_SCRATCH(i), rsa[i]); in guc_xfer_rsa()
|