Home
last modified time | relevance | path

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

/openbmc/linux/crypto/
H A Drsa.c239 struct rsa_mpi_key *mpi_key = akcipher_tfm_ctx(tfm); in rsa_set_pub_key() local
244 rsa_free_mpi_key(mpi_key); 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()
251 if (!mpi_key->e) 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()
255 if (!mpi_key->n) in rsa_set_pub_key()
258 if (rsa_check_key_length(mpi_get_size(mpi_key->n) << 3)) { in rsa_set_pub_key()
259 rsa_free_mpi_key(mpi_key); in rsa_set_pub_key()
263 if (fips_enabled && rsa_check_exponent_fips(mpi_key->e)) { in rsa_set_pub_key()
264 rsa_free_mpi_key(mpi_key); in rsa_set_pub_key()
[all …]