Lines Matching refs:rsa
132 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_.get())); in BuildRsaKey() local
133 if (!rsa) { in BuildRsaKey()
139 if (!RSA_set_ex_data(rsa.get(), rsa_index_, key_data)) { in BuildRsaKey()
156 rsa->n = BN_dup(public_rsa->n); in BuildRsaKey()
157 rsa->e = BN_dup(public_rsa->e); in BuildRsaKey()
158 if (!rsa->n || !rsa->e) { in BuildRsaKey()
164 return rsa.release(); in BuildRsaKey()
208 unique_ptr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(key)); in GetData() local
209 return GetData(rsa.get()); in GetData()
222 Keymaster1Engine::KeyData* Keymaster1Engine::GetData(const RSA* rsa) const { in GetData()
223 if (!rsa) return nullptr; in GetData()
224 return reinterpret_cast<KeyData*>(RSA_get_ex_data(rsa, rsa_index_)); in GetData()
271 int Keymaster1Engine::rsa_sign_raw(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_sign_raw() argument
273 KeyData* key_data = instance_->GetData(rsa); in rsa_sign_raw()
294 int Keymaster1Engine::rsa_decrypt(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_decrypt() argument
296 KeyData* key_data = instance_->GetData(rsa); in rsa_decrypt()