Searched refs:rsa (Results 1 - 4 of 4) 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/core/libmincrypt/ |
H A D | Android.mk | 7 LOCAL_SRC_FILES := rsa.c rsa_e_3.c rsa_e_f4.c sha.c 13 LOCAL_SRC_FILES := rsa.c rsa_e_3.c rsa_e_f4.c sha.c
|
/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...] |
/system/security/softkeymaster/ |
H A D | keymaster_openssl.cpp | 27 #include <openssl/rsa.h> 236 Unique_RSA rsa(RSA_new()); 237 if (rsa.get() == NULL) { 242 if (!RSA_generate_key_ex(rsa.get(), rsa_params->modulus_size, bn.get(), NULL) 243 || RSA_check_key(rsa.get()) < 0) { 255 if (EVP_PKEY_assign_RSA(pkey.get(), rsa.get()) == 0) { 259 OWNERSHIP_TRANSFERRED(rsa); 378 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey.get())); 379 if (rsa.get() == NULL) { 391 if (RSA_private_encrypt(dataLength, data, tmp, rsa [all...] |
Completed in 570 milliseconds