Lines Matching refs:rsa
83 extern "C" int rsa_private_transform(RSA* rsa, uint8_t* out, const uint8_t* in, size_t len);
135 bssl::UniquePtr<RSA> rsa(RSA_new_method(Keystore2Engine::get().engine())); in wrap_rsa() local
136 if (rsa.get() == nullptr) { in wrap_rsa()
142 if (!RSA_set_ex_data(rsa.get(), Keystore2Engine::get().rsa_ex_index(), key_backend_copy)) { in wrap_rsa()
147 rsa->n = BN_dup(public_rsa->n); in wrap_rsa()
148 rsa->e = BN_dup(public_rsa->e); in wrap_rsa()
149 if (rsa->n == nullptr || rsa->e == nullptr) { in wrap_rsa()
154 if (result.get() == nullptr || !EVP_PKEY_assign_RSA(result.get(), rsa.get())) { in wrap_rsa()
157 OWNERSHIP_TRANSFERRED(rsa); in wrap_rsa()
257 extern "C" int rsa_private_transform(RSA* rsa, uint8_t* out, const uint8_t* in, size_t len) { in rsa_private_transform() argument
259 RSA_get_ex_data(rsa, Keystore2Engine::get().rsa_ex_index())); in rsa_private_transform()