Home
last modified time | relevance | path

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

/linux/crypto/
A 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 …]
A Drsa.c160 struct rsa_key raw_key = {0}; in rsa_set_pub_key()
194 struct rsa_key raw_key = {0}; in rsa_set_priv_key()
/linux/drivers/crypto/caam/
A Dcaampkc.c950 if (!rsa_key->e) in caam_rsa_set_pub_key()
960 if (!rsa_key->n) in caam_rsa_set_pub_key()
985 if (!rsa_key->p) in caam_rsa_set_priv_key_form()
990 if (!rsa_key->q) in caam_rsa_set_priv_key_form()
995 if (!rsa_key->tmp1) in caam_rsa_set_priv_key_form()
999 if (!rsa_key->tmp2) in caam_rsa_set_priv_key_form()
1005 if (!rsa_key->dp) in caam_rsa_set_priv_key_form()
1009 if (!rsa_key->dq) in caam_rsa_set_priv_key_form()
1052 if (!rsa_key->d) in caam_rsa_set_priv_key()
1056 if (!rsa_key->e) in caam_rsa_set_priv_key()
[all …]
/linux/include/crypto/internal/
A 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/drivers/crypto/qat/qat_common/
A Dqat_asym_algs.c1025 ptr = rsa_key->p; in qat_rsa_setkey_crt()
1026 len = rsa_key->p_sz; in qat_rsa_setkey_crt()
1036 ptr = rsa_key->q; in qat_rsa_setkey_crt()
1037 len = rsa_key->q_sz; in qat_rsa_setkey_crt()
1047 ptr = rsa_key->dp; in qat_rsa_setkey_crt()
1059 ptr = rsa_key->dq; in qat_rsa_setkey_crt()
1071 ptr = rsa_key->qinv; in qat_rsa_setkey_crt()
1156 struct rsa_key rsa_key; in qat_rsa_setkey() local
1168 ret = qat_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz); in qat_rsa_setkey()
1171 ret = qat_rsa_set_e(ctx, rsa_key.e, rsa_key.e_sz); in qat_rsa_setkey()
[all …]
/linux/drivers/crypto/hisilicon/hpre/
A 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()
1069 struct rsa_key rsa_key; in hpre_rsa_setkey() local
1081 ret = hpre_rsa_set_n(ctx, rsa_key.n, rsa_key.n_sz, private); in hpre_rsa_setkey()
1086 ret = hpre_rsa_set_d(ctx, rsa_key.d, rsa_key.d_sz); in hpre_rsa_setkey()
1090 if (hpre_is_crt_key(&rsa_key)) { in hpre_rsa_setkey()
[all …]
/linux/drivers/crypto/ccp/
A Dccp-crypto-rsa.c130 struct rsa_key raw_key; in ccp_rsa_setkey()

Completed in 15 milliseconds