Home
last modified time | relevance | path

Searched refs:rsa_key (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/crypto/
Drsa_helper.c19 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()
162 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument
165 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key()
[all …]
Drsa.c164 struct rsa_key raw_key = {0}; in rsa_set_pub_key()
198 struct rsa_key raw_key = {0}; in rsa_set_priv_key()
/linux-5.19.10/drivers/crypto/caam/
Dcaampkc.c940 struct rsa_key raw_key = {NULL}; in caam_rsa_set_pub_key()
941 struct caam_rsa_key *rsa_key = &ctx->key; in caam_rsa_set_pub_key() local
945 caam_rsa_free_key(rsa_key); in caam_rsa_set_pub_key()
952 rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL); in caam_rsa_set_pub_key()
953 if (!rsa_key->e) in caam_rsa_set_pub_key()
962 rsa_key->n = caam_read_raw_data(raw_key.n, &raw_key.n_sz); in caam_rsa_set_pub_key()
963 if (!rsa_key->n) in caam_rsa_set_pub_key()
967 caam_rsa_free_key(rsa_key); in caam_rsa_set_pub_key()
971 rsa_key->e_sz = raw_key.e_sz; in caam_rsa_set_pub_key()
972 rsa_key->n_sz = raw_key.n_sz; in caam_rsa_set_pub_key()
[all …]
/linux-5.19.10/include/crypto/internal/
Drsa.h31 struct rsa_key { struct
50 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, argument
53 int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key,
/linux-5.19.10/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c1023 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->dq_sz; in qat_rsa_setkey_crt()
1078 ptr = rsa_key->qinv; in qat_rsa_setkey_crt()
[all …]
/linux-5.19.10/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c961 static int hpre_rsa_setkey_crt(struct hpre_ctx *ctx, struct rsa_key *rsa_key) in hpre_rsa_setkey_crt() argument
975 rsa_key->dq, rsa_key->dq_sz); in hpre_rsa_setkey_crt()
981 rsa_key->dp, rsa_key->dp_sz); in hpre_rsa_setkey_crt()
987 rsa_key->q, rsa_key->q_sz); in hpre_rsa_setkey_crt()
993 rsa_key->p, rsa_key->p_sz); in hpre_rsa_setkey_crt()
999 rsa_key->qinv, rsa_key->qinv_sz); in hpre_rsa_setkey_crt()
1055 static bool hpre_is_crt_key(struct rsa_key *key) in hpre_is_crt_key()
1069 struct rsa_key rsa_key; in hpre_rsa_setkey() local
1075 ret = rsa_parse_priv_key(&rsa_key, key, keylen); in hpre_rsa_setkey()
1077 ret = rsa_parse_pub_key(&rsa_key, key, keylen); in hpre_rsa_setkey()
[all …]
/linux-5.19.10/drivers/crypto/virtio/
Dvirtio_crypto_akcipher_algs.c372 struct rsa_key rsa_key = {0}; in virtio_crypto_rsa_set_key() local
383 ret = rsa_parse_priv_key(&rsa_key, key, keylen); in virtio_crypto_rsa_set_key()
386 ret = rsa_parse_pub_key(&rsa_key, key, keylen); in virtio_crypto_rsa_set_key()
392 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
/linux-5.19.10/drivers/crypto/ccp/
Dccp-crypto-rsa.c130 struct rsa_key raw_key; in ccp_rsa_setkey()