Lines Matching refs:rsa
85 const char* rsa_get_key_id(const RSA* rsa);
91 int rsa_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, size_t len) { in rsa_private_transform() argument
92 ALOGV("rsa_private_transform(%p, %p, %p, %u)", rsa, out, in, (unsigned) len); in rsa_private_transform()
96 const char *key_id = rsa_get_key_id(rsa); in rsa_private_transform()
135 ALOGV("rsa=%p keystore_rsa_priv_dec successful", rsa); in rsa_private_transform()
244 const char* rsa_get_key_id(const RSA* rsa) { in rsa_get_key_id() argument
246 RSA_get_ex_data(rsa, g_keystore_engine->rsa_ex_index())); in rsa_get_key_id()
279 Unique_RSA rsa(RSA_new_method(g_keystore_engine->engine())); in wrap_rsa() local
280 if (rsa.get() == nullptr) { in wrap_rsa()
289 if (!RSA_set_ex_data(rsa.get(), g_keystore_engine->rsa_ex_index(), in wrap_rsa()
295 rsa->n = BN_dup(public_rsa->n); in wrap_rsa()
296 rsa->e = BN_dup(public_rsa->e); in wrap_rsa()
297 if (rsa->n == nullptr || rsa->e == nullptr) { in wrap_rsa()
303 !EVP_PKEY_assign_RSA(result.get(), rsa.get())) { in wrap_rsa()
306 OWNERSHIP_TRANSFERRED(rsa); in wrap_rsa()