Searched refs:n_sz (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/crypto/ |
D | rsa_helper.c | 21 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 …]
|
D | rsa.c | 226 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/ |
D | caampkc.c | 64 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 …]
|
D | caampkc.h | 81 size_t n_sz; member
|
/linux-6.1.9/drivers/crypto/ |
D | atmel-ecc.c | 53 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/ |
D | rsa.h | 40 size_t n_sz; member
|
/linux-6.1.9/drivers/crypto/ccp/ |
D | ccp-crypto-rsa.c | 145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey()
|
/linux-6.1.9/drivers/crypto/virtio/ |
D | virtio_crypto_akcipher_algs.c | 396 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/ |
D | qat_asym_algs.c | 1175 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/ |
D | hpre_crypto.c | 1087 ret = hpre_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz, private); in hpre_rsa_setkey()
|