Searched refs:n_sz (Results 1 – 12 of 12) sorted by relevance
/openbmc/linux/crypto/ |
H A 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 …]
|
H A D | rsa.c | 254 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 D | caampkc.c | 267 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 D | caampkc.h | 80 size_t n_sz; member
|
/openbmc/linux/drivers/crypto/aspeed/ |
H A D | aspeed-acry.c | 120 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 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()
|
/openbmc/linux/include/crypto/internal/ |
H A D | rsa.h | 40 size_t n_sz; member
|
/openbmc/linux/drivers/crypto/starfive/ |
H A D | jh7110-rsa.c | 493 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 D | ccp-crypto-rsa.c | 145 raw_key.n, raw_key.n_sz); in ccp_rsa_setkey()
|
/openbmc/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 397 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 D | qat_asym_algs.c | 1175 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 D | hpre_crypto.c | 1099 ret = hpre_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz, private); in hpre_rsa_setkey()
|