Lines Matching refs:key
19 struct rsa_key *key = context; in rsa_get_n() local
40 key->n = value; in rsa_get_n()
41 key->n_sz = vlen; in rsa_get_n()
49 struct rsa_key *key = context; in rsa_get_e() local
52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e()
55 key->e = value; in rsa_get_e()
56 key->e_sz = vlen; in rsa_get_e()
64 struct rsa_key *key = context; in rsa_get_d() local
67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d()
70 key->d = value; in rsa_get_d()
71 key->d_sz = vlen; in rsa_get_d()
79 struct rsa_key *key = context; in rsa_get_p() local
82 if (!value || !vlen || vlen > key->n_sz) in rsa_get_p()
85 key->p = value; in rsa_get_p()
86 key->p_sz = vlen; in rsa_get_p()
94 struct rsa_key *key = context; in rsa_get_q() local
97 if (!value || !vlen || vlen > key->n_sz) in rsa_get_q()
100 key->q = value; in rsa_get_q()
101 key->q_sz = vlen; in rsa_get_q()
109 struct rsa_key *key = context; in rsa_get_dp() local
112 if (!value || !vlen || vlen > key->n_sz) in rsa_get_dp()
115 key->dp = value; in rsa_get_dp()
116 key->dp_sz = vlen; in rsa_get_dp()
124 struct rsa_key *key = context; in rsa_get_dq() local
127 if (!value || !vlen || vlen > key->n_sz) in rsa_get_dq()
130 key->dq = value; in rsa_get_dq()
131 key->dq_sz = vlen; in rsa_get_dq()
139 struct rsa_key *key = context; in rsa_get_qinv() local
142 if (!value || !vlen || vlen > key->n_sz) in rsa_get_qinv()
145 key->qinv = value; in rsa_get_qinv()
146 key->qinv_sz = vlen; 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()
181 int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_priv_key() argument
184 return asn1_ber_decoder(&rsaprivkey_decoder, rsa_key, key, key_len); in rsa_parse_priv_key()