Home
last modified time | relevance | path

Searched refs:n_sz (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/crypto/
Drsa_helper.c21 size_t n_sz = vlen; in rsa_get_n() local
28 while (n_sz && !*ptr) { in rsa_get_n()
30 n_sz--; in rsa_get_n()
34 if (n_sz < 256) { in rsa_get_n()
41 key->n_sz = vlen; in rsa_get_n()
52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e()
67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d()
82 if (!value || !vlen || vlen > key->n_sz) in rsa_get_p()
97 if (!value || !vlen || vlen > key->n_sz) in rsa_get_q()
112 if (!value || !vlen || vlen > key->n_sz) in rsa_get_dp()
[all …]
Drsa.c174 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key()
212 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
/kernel/linux/linux-5.10/drivers/crypto/
Datmel-ecc.c46 size_t n_sz; member
56 size_t copied, n_sz; in atmel_ecdh_done() local
62 n_sz = min_t(size_t, ctx->n_sz, req->dst_len); in atmel_ecdh_done()
65 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, n_sz), in atmel_ecdh_done()
66 &cmd->data[RSP_DATA_IDX], n_sz); in atmel_ecdh_done()
67 if (copied != n_sz) in atmel_ecdh_done()
107 ctx->n_sz = atmel_ecdh_supported_curve(params.curve_id); in atmel_ecdh_set_secret()
108 if (!ctx->n_sz || params.key_size) { in atmel_ecdh_set_secret()
/kernel/linux/linux-5.10/drivers/crypto/caam/
Dcaampkc.c64 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in rsa_pub_unmap()
76 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in rsa_priv_f1_unmap()
258 if (req->src_len > key->n_sz) { in rsa_edesc_alloc()
264 key->n_sz, sg_flags); in rsa_edesc_alloc()
276 diff_size = key->n_sz - req->src_len; in rsa_edesc_alloc()
404 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
413 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
433 pdb->sgf |= (key->e_sz << RSA_PDB_E_SHIFT) | key->n_sz; in set_rsa_pub_pdb()
449 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_priv_f1_pdb()
458 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in set_rsa_priv_f1_pdb()
[all …]
Dcaampkc.h81 size_t n_sz; member
/kernel/linux/linux-5.10/include/crypto/internal/
Drsa.h40 size_t n_sz; member
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-rsa.c145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey()
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c1022 ret = hpre_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz, private); in hpre_rsa_setkey()
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c1173 ret = qat_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz); in qat_rsa_setkey()