Home
last modified time | relevance | path

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

/openbmc/linux/crypto/
H 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 …]
H A Drsa.c254 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key()
297 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
/openbmc/linux/drivers/crypto/caam/
H A Dcaampkc.c267 if (req->src_len > key->n_sz) { in rsa_edesc_alloc()
273 key->n_sz, sg_flags); in rsa_edesc_alloc()
285 diff_size = key->n_sz - req->src_len; in rsa_edesc_alloc()
646 pdb->sgf |= key->n_sz; in set_rsa_priv_f3_pdb()
726 if (req->dst_len < key->n_sz) { in caam_rsa_enc()
727 req->dst_len = key->n_sz; in caam_rsa_enc()
850 if (req->dst_len < key->n_sz) { in caam_rsa_dec()
851 req->dst_len = key->n_sz; in caam_rsa_dec()
979 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_pub_key()
1089 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_priv_key()
[all …]
H A Dcaampkc.h80 size_t n_sz; member
/openbmc/linux/drivers/crypto/aspeed/
H A Daspeed-acry.c120 size_t n_sz; member
169 return ctx->key.n_sz > ASPEED_ACRY_RSA_MAX_KEY_LEN; in aspeed_acry_need_fallback()
354 if (!ctx->n || !ctx->n_sz) { in aspeed_acry_rsa_trigger()
366 ctx->n_sz, ASPEED_RSA_MOD_MODE); in aspeed_acry_rsa_trigger()
445 ctx->n_sz = len; in aspeed_rsa_set_n()
480 ctx->n_sz = 0; in aspeed_rsa_key_free()
506 if (ctx->key.n_sz > ASPEED_ACRY_RSA_MAX_KEY_LEN) in aspeed_acry_rsa_setkey()
509 ret = aspeed_rsa_set_n(ctx, (u8 *)ctx->key.n, ctx->key.n_sz); in aspeed_acry_rsa_setkey()
564 if (ctx->key.n_sz > ASPEED_ACRY_RSA_MAX_KEY_LEN) in aspeed_acry_rsa_max_size()
567 return ctx->n_sz; in aspeed_acry_rsa_max_size()
/openbmc/linux/drivers/crypto/
H 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()
/openbmc/linux/include/crypto/internal/
H A Drsa.h40 size_t n_sz; member
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-rsa.c493 if (raw_key.n_sz > STARFIVE_RSA_MAX_KEYSZ + 1) in starfive_rsa_setkey()
496 ret = starfive_rsa_set_n(rsa_key, raw_key.n, raw_key.n_sz); in starfive_rsa_setkey()
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-rsa.c145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey()
/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c397 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c1175 ret = qat_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz); in qat_rsa_setkey()
/openbmc/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c1099 ret = hpre_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz, private); in hpre_rsa_setkey()