Lines Matching refs:pkey
121 br_x509_pkey *pkey; in load_cafile() local
202 pkey = br_x509_decoder_get_pkey(&ca.xc); in load_cafile()
203 if(!pkey) { in load_cafile()
207 ta->pkey = *pkey; in load_cafile()
211 switch(pkey->key_type) { in load_cafile()
213 ta_size += pkey->key.rsa.nlen + pkey->key.rsa.elen; in load_cafile()
216 ta_size += pkey->key.ec.qlen; in load_cafile()
231 switch(pkey->key_type) { in load_cafile()
233 ta->pkey.key.rsa.n = ta->dn.data + ta->dn.len; in load_cafile()
234 memcpy(ta->pkey.key.rsa.n, pkey->key.rsa.n, pkey->key.rsa.nlen); in load_cafile()
235 ta->pkey.key.rsa.e = ta->pkey.key.rsa.n + ta->pkey.key.rsa.nlen; in load_cafile()
236 memcpy(ta->pkey.key.rsa.e, pkey->key.rsa.e, pkey->key.rsa.elen); in load_cafile()
239 ta->pkey.key.ec.q = ta->dn.data + ta->dn.len; in load_cafile()
240 memcpy(ta->pkey.key.ec.q, pkey->key.ec.q, pkey->key.ec.qlen); in load_cafile()