Lines Matching refs:raw_key
240 struct rsa_key raw_key = {0}; in rsa_set_pub_key() local
246 ret = rsa_parse_pub_key(&raw_key, key, keylen); in rsa_set_pub_key()
250 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_pub_key()
254 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key()
279 struct rsa_key raw_key = {0}; in rsa_set_priv_key() local
285 ret = rsa_parse_priv_key(&raw_key, key, keylen); in rsa_set_priv_key()
289 mpi_key->d = mpi_read_raw_data(raw_key.d, raw_key.d_sz); in rsa_set_priv_key()
293 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_priv_key()
297 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
301 mpi_key->p = mpi_read_raw_data(raw_key.p, raw_key.p_sz); in rsa_set_priv_key()
305 mpi_key->q = mpi_read_raw_data(raw_key.q, raw_key.q_sz); in rsa_set_priv_key()
309 mpi_key->dp = mpi_read_raw_data(raw_key.dp, raw_key.dp_sz); in rsa_set_priv_key()
313 mpi_key->dq = mpi_read_raw_data(raw_key.dq, raw_key.dq_sz); in rsa_set_priv_key()
317 mpi_key->qinv = mpi_read_raw_data(raw_key.qinv, raw_key.qinv_sz); in rsa_set_priv_key()