Home
last modified time | relevance | path

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

/linux/crypto/
A 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 …]
A 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()
/linux/drivers/crypto/caam/
A Dcaampkc.c259 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()
636 pdb->sgf |= key->n_sz; in set_rsa_priv_f3_pdb()
716 if (req->dst_len < key->n_sz) { in caam_rsa_enc()
717 req->dst_len = key->n_sz; in caam_rsa_enc()
840 if (req->dst_len < key->n_sz) { in caam_rsa_dec()
841 req->dst_len = key->n_sz; in caam_rsa_dec()
969 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_pub_key()
1076 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_priv_key()
[all …]
A Dcaampkc.h81 size_t n_sz; member
/linux/drivers/crypto/
A 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/include/crypto/internal/
A Drsa.h40 size_t n_sz; member
/linux/drivers/crypto/ccp/
A Dccp-crypto-rsa.c145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey()
/linux/drivers/crypto/qat/qat_common/
A Dqat_asym_algs.c1168 ret = qat_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz); in qat_rsa_setkey()
/linux/drivers/crypto/hisilicon/hpre/
A Dhpre_crypto.c1081 ret = hpre_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz, private); in hpre_rsa_setkey()

Completed in 20 milliseconds