Home
last modified time | relevance | path

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

/linux-6.1.9/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.c226 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key()
264 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
/linux-6.1.9/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()
259 if (req->src_len > key->n_sz) { in rsa_edesc_alloc()
265 key->n_sz, sg_flags); in rsa_edesc_alloc()
277 diff_size = key->n_sz - req->src_len; in rsa_edesc_alloc()
408 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
417 dma_unmap_single(dev, pdb->n_dma, key->n_sz, DMA_TO_DEVICE); in set_rsa_pub_pdb()
437 pdb->sgf |= (key->e_sz << RSA_PDB_E_SHIFT) | key->n_sz; in set_rsa_pub_pdb()
453 pdb->n_dma = dma_map_single(dev, key->n, key->n_sz, DMA_TO_DEVICE); in set_rsa_priv_f1_pdb()
462 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
/linux-6.1.9/drivers/crypto/
Datmel-ecc.c53 size_t copied, n_sz; in atmel_ecdh_done() local
59 n_sz = min_t(size_t, ATMEL_ECC_NIST_P256_N_SIZE, req->dst_len); in atmel_ecdh_done()
62 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, n_sz), in atmel_ecdh_done()
63 &cmd->data[RSP_DATA_IDX], n_sz); in atmel_ecdh_done()
64 if (copied != n_sz) in atmel_ecdh_done()
/linux-6.1.9/include/crypto/internal/
Drsa.h40 size_t n_sz; member
/linux-6.1.9/drivers/crypto/ccp/
Dccp-crypto-rsa.c145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey()
/linux-6.1.9/drivers/crypto/virtio/
Dvirtio_crypto_akcipher_algs.c396 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
/linux-6.1.9/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c1175 ret = qat_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz); in qat_rsa_setkey()
/linux-6.1.9/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c1087 ret = hpre_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz, private); in hpre_rsa_setkey()