Lines Matching refs:rsa
139 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_.get())); in BuildRsaKey() local
140 if (!rsa) { in BuildRsaKey()
146 if (!RSA_set_ex_data(rsa.get(), rsa_index_, key_data)) { in BuildRsaKey()
164 rsa->n = BN_dup(public_rsa->n); in BuildRsaKey()
165 rsa->e = BN_dup(public_rsa->e); in BuildRsaKey()
166 if (!rsa->n || !rsa->e) { in BuildRsaKey()
172 return rsa.release(); in BuildRsaKey()
217 unique_ptr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(key)); in GetData() local
218 return GetData(rsa.get()); in GetData()
231 Keymaster1Engine::KeyData* Keymaster1Engine::GetData(const RSA* rsa) const { in GetData()
232 if (!rsa) in GetData()
234 return reinterpret_cast<KeyData*>(RSA_get_ex_data(rsa, rsa_index_)); in GetData()
284 int Keymaster1Engine::rsa_sign_raw(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_sign_raw() argument
286 KeyData* key_data = instance_->GetData(rsa); in rsa_sign_raw()
309 int Keymaster1Engine::rsa_decrypt(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_decrypt() argument
311 KeyData* key_data = instance_->GetData(rsa); in rsa_decrypt()