Searched defs:rsa (Results 1 - 2 of 2) sorted by path
/system/core/adb/ |
H A D | adb_auth_host.c | 37 #include "mincrypt/rsa.h" 45 #include <openssl/rsa.h> 56 RSA *rsa; member in struct:adb_private_key 63 static int RSA_to_RSAPublicKey(RSA *rsa, RSAPublicKey *pkey) argument 76 if (RSA_size(rsa) != RSANUMBYTES) { 82 BN_copy(n, rsa->n); 96 pkey->exponent = BN_get_word(rsa->e); 178 RSA* rsa = RSA_new(); local 185 if (!pkey || !exponent || !rsa) { 191 RSA_generate_key_ex(rsa, 204 [all...] |
/system/security/keystore-engine/ |
H A D | eng_keystore.cpp | 125 int keystore_rsa_priv_enc(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, argument 127 ALOGV("keystore_rsa_sign(%d, %p, %p, %p, %d)", flen, from, to, rsa, padding); 129 int num = RSA_size(rsa); 157 uint8_t* key_id = reinterpret_cast<uint8_t*>(RSA_get_ex_data(rsa, rsa_key_handle)); 179 ALOGV("rsa=%p keystore_rsa_sign => returning %p len %llu", rsa, to, 237 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey.get())); 238 if (!RSA_set_ex_data(rsa.get(), rsa_key_handle, reinterpret_cast<void*>(strdup(key_id)))) { 243 RSA_set_method(rsa.get(), &keystore_rsa_meth); 244 RSA_blinding_off(rsa [all...] |
Completed in 20 milliseconds