/kernel/linux/linux-6.6/drivers/crypto/starfive/ |
H A D | jh7110-rsa.c | 195 struct starfive_rsa_key *key = &ctx->rsa_key; in starfive_rsa_cpu_start() 276 struct starfive_rsa_key *key = &ctx->rsa_key; in starfive_rsa_enc_core() 311 struct starfive_rsa_key *key = &ctx->rsa_key; in starfive_rsa_enc() 343 struct starfive_rsa_key *key = &ctx->rsa_key; in starfive_rsa_dec() 369 static int starfive_rsa_set_n(struct starfive_rsa_key *rsa_key, in starfive_rsa_set_n() argument 380 rsa_key->key_sz = vlen; in starfive_rsa_set_n() 381 bitslen = rsa_key->key_sz << 3; in starfive_rsa_set_n() 388 rsa_key->n = kmemdup(ptr, rsa_key->key_sz, GFP_KERNEL); in starfive_rsa_set_n() 389 if (!rsa_key in starfive_rsa_set_n() 400 starfive_rsa_set_e(struct starfive_rsa_key *rsa_key, const char *value, size_t vlen) starfive_rsa_set_e() argument 434 starfive_rsa_set_d(struct starfive_rsa_key *rsa_key, const char *value, size_t vlen) starfive_rsa_set_d() argument 477 struct starfive_rsa_key *rsa_key = &ctx->rsa_key; starfive_rsa_setkey() local [all...] |
H A D | jh7110-cryp.h | 160 struct starfive_rsa_key rsa_key; member
|
/kernel/linux/linux-5.10/crypto/ |
H A D | rsa_helper.c | 19 struct rsa_key *key = context; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() 64 struct rsa_key *key = context; in rsa_get_d() 79 struct rsa_key *key = context; in rsa_get_p() 94 struct rsa_key *key = context; in rsa_get_q() 109 struct rsa_key *key = context; in rsa_get_dp() 124 struct rsa_key *key = context; in rsa_get_dq() 139 struct rsa_key *key = context; in rsa_get_qinv() 153 * provided struct rsa_key, pointers to the raw key as is, 156 * @rsa_key 162 rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_pub_key() argument 181 rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_priv_key() argument [all...] |
H A D | rsa.c | 160 struct rsa_key raw_key = {0}; in rsa_set_pub_key() 194 struct rsa_key raw_key = {0}; in rsa_set_priv_key()
|
/kernel/linux/linux-6.6/crypto/ |
H A D | rsa_helper.c | 19 struct rsa_key *key = context; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() 64 struct rsa_key *key = context; in rsa_get_d() 79 struct rsa_key *key = context; in rsa_get_p() 94 struct rsa_key *key = context; in rsa_get_q() 109 struct rsa_key *key = context; in rsa_get_dp() 124 struct rsa_key *key = context; in rsa_get_dq() 139 struct rsa_key *key = context; in rsa_get_qinv() 153 * provided struct rsa_key, pointers to the raw key as is, 156 * @rsa_key 162 rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_pub_key() argument 181 rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_priv_key() argument [all...] |
H A D | rsa.c | 240 struct rsa_key raw_key = {0}; in rsa_set_pub_key() 279 struct rsa_key raw_key = {0}; in rsa_set_priv_key()
|
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | caampkc.c | 938 struct rsa_key raw_key = {NULL}; in caam_rsa_set_pub_key() 939 struct caam_rsa_key *rsa_key = &ctx->key; in caam_rsa_set_pub_key() local 943 caam_rsa_free_key(rsa_key); in caam_rsa_set_pub_key() 950 rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL); in caam_rsa_set_pub_key() 951 if (!rsa_key->e) in caam_rsa_set_pub_key() 960 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key() 961 if (!rsa_key->n) in caam_rsa_set_pub_key() 965 caam_rsa_free_key(rsa_key); in caam_rsa_set_pub_key() 969 rsa_key->e_sz = raw_key.e_sz; in caam_rsa_set_pub_key() 970 rsa_key in caam_rsa_set_pub_key() 981 struct caam_rsa_key *rsa_key = &ctx->key; caam_rsa_set_priv_key_form() local 1041 struct caam_rsa_key *rsa_key = &ctx->key; caam_rsa_set_priv_key() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/caam/ |
H A D | caampkc.c | 947 struct rsa_key raw_key = {NULL}; in caam_rsa_set_pub_key() 948 struct caam_rsa_key *rsa_key = &ctx->key; in caam_rsa_set_pub_key() local 952 caam_rsa_free_key(rsa_key); in caam_rsa_set_pub_key() 959 rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_KERNEL); in caam_rsa_set_pub_key() 960 if (!rsa_key->e) in caam_rsa_set_pub_key() 969 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key() 970 if (!rsa_key->n) in caam_rsa_set_pub_key() 974 caam_rsa_free_key(rsa_key); in caam_rsa_set_pub_key() 978 rsa_key->e_sz = raw_key.e_sz; in caam_rsa_set_pub_key() 979 rsa_key in caam_rsa_set_pub_key() 990 struct caam_rsa_key *rsa_key = &ctx->key; caam_rsa_set_priv_key_form() local 1053 struct caam_rsa_key *rsa_key = &ctx->key; caam_rsa_set_priv_key() local [all...] |
/kernel/linux/linux-5.10/include/crypto/internal/ |
H A D | rsa.h | 13 * rsa_key - RSA key structure 31 struct rsa_key { struct 50 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, 53 int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key,
|
/kernel/linux/linux-6.6/include/crypto/internal/ |
H A D | rsa.h | 13 * rsa_key - RSA key structure 31 struct rsa_key { struct 50 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, 53 int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key,
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 902 static int hpre_rsa_setkey_crt(struct hpre_ctx *ctx, struct rsa_key *rsa_key) in hpre_rsa_setkey_crt() argument 916 rsa_key->dq, rsa_key->dq_sz); in hpre_rsa_setkey_crt() 922 rsa_key->dp, rsa_key->dp_sz); in hpre_rsa_setkey_crt() 928 rsa_key->q, rsa_key->q_sz); in hpre_rsa_setkey_crt() 934 rsa_key->p, rsa_key in hpre_rsa_setkey_crt() 1010 struct rsa_key rsa_key; hpre_rsa_setkey() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
H A D | qat_asym_algs.c | 1021 static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) in qat_rsa_setkey_crt() argument 1030 ptr = rsa_key->p; in qat_rsa_setkey_crt() 1031 len = rsa_key->p_sz; in qat_rsa_setkey_crt() 1041 ptr = rsa_key->q; in qat_rsa_setkey_crt() 1042 len = rsa_key->q_sz; in qat_rsa_setkey_crt() 1052 ptr = rsa_key->dp; in qat_rsa_setkey_crt() 1053 len = rsa_key->dp_sz; in qat_rsa_setkey_crt() 1064 ptr = rsa_key->dq; in qat_rsa_setkey_crt() 1065 len = rsa_key in qat_rsa_setkey_crt() 1161 struct rsa_key rsa_key; qat_rsa_setkey() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_asym_algs.c | 1023 static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) in qat_rsa_setkey_crt() argument 1032 ptr = rsa_key->p; in qat_rsa_setkey_crt() 1033 len = rsa_key->p_sz; in qat_rsa_setkey_crt() 1043 ptr = rsa_key->q; in qat_rsa_setkey_crt() 1044 len = rsa_key->q_sz; in qat_rsa_setkey_crt() 1054 ptr = rsa_key->dp; in qat_rsa_setkey_crt() 1055 len = rsa_key->dp_sz; in qat_rsa_setkey_crt() 1066 ptr = rsa_key->dq; in qat_rsa_setkey_crt() 1067 len = rsa_key in qat_rsa_setkey_crt() 1163 struct rsa_key rsa_key; qat_rsa_setkey() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 979 static int hpre_rsa_setkey_crt(struct hpre_ctx *ctx, struct rsa_key *rsa_key) in hpre_rsa_setkey_crt() argument 993 rsa_key->dq, rsa_key->dq_sz); in hpre_rsa_setkey_crt() 999 rsa_key->dp, rsa_key->dp_sz); in hpre_rsa_setkey_crt() 1005 rsa_key->q, rsa_key->q_sz); in hpre_rsa_setkey_crt() 1011 rsa_key->p, rsa_key in hpre_rsa_setkey_crt() 1087 struct rsa_key rsa_key; hpre_rsa_setkey() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 373 struct rsa_key rsa_key = {0}; in virtio_crypto_rsa_set_key() local 384 ret = rsa_parse_priv_key(&rsa_key, key, keylen); in virtio_crypto_rsa_set_key() 387 ret = rsa_parse_pub_key(&rsa_key, key, keylen); in virtio_crypto_rsa_set_key() 393 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
|
/kernel/linux/linux-6.6/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 377 struct rsa_key rsa_key = {0}; in virtio_crypto_rsa_set_key() local 388 ret = rsa_parse_priv_key(&rsa_key, key, keylen); in virtio_crypto_rsa_set_key() 391 ret = rsa_parse_pub_key(&rsa_key, key, keylen); in virtio_crypto_rsa_set_key() 397 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
|
/kernel/linux/linux-5.10/drivers/crypto/ccp/ |
H A D | ccp-crypto-rsa.c | 130 struct rsa_key raw_key; in ccp_rsa_setkey()
|
/kernel/linux/linux-6.6/drivers/crypto/ccp/ |
H A D | ccp-crypto-rsa.c | 130 struct rsa_key raw_key; in ccp_rsa_setkey()
|
/kernel/linux/linux-6.6/drivers/crypto/aspeed/ |
H A D | aspeed-acry.c | 115 struct rsa_key key;
|