Searched defs:rsa (Results 1 - 7 of 7) sorted by relevance

/system/keymaster/
H A Drsa_key.h20 #include <openssl/rsa.h>
45 RsaKey(RSA* rsa, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, argument
47 : AsymmetricKey(hw_enforced, sw_enforced, error), rsa_key_(rsa) {}
H A Dkeymaster0_engine.cpp184 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_));
185 if (!rsa)
189 if (!blob_copy->key_material || !RSA_set_ex_data(rsa.get(), rsa_index_, blob_copy))
199 rsa->n = BN_dup(public_rsa->n);
200 rsa->e = BN_dup(public_rsa->e);
201 if (!rsa->n || !rsa->e)
204 return rsa.release();
233 const keymaster_key_blob_t* Keymaster0Engine::RsaKeyToBlob(const RSA* rsa) const {
234 return reinterpret_cast<keymaster_key_blob_t*>(RSA_get_ex_data(rsa, rsa_index
265 rsa_private_transform(RSA* rsa, uint8_t* out, const uint8_t* in, size_t len) argument
313 RsaPrivateTransform(RSA* rsa, uint8_t* out, const uint8_t* in, size_t len) const argument
[all...]
/system/security/keystore-engine/
H A Drsa_meth.cpp29 #define LOG_TAG "OpenSSL-keystore-rsa"
35 #include <openssl/rsa.h>
44 int keystore_rsa_priv_enc(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, argument
46 ALOGV("keystore_rsa_priv_enc(%d, %p, %p, %p, %d)", flen, from, to, rsa, padding);
48 int num = RSA_size(rsa);
76 uint8_t* key_id = reinterpret_cast<uint8_t*>(RSA_get_ex_data(rsa, rsa_key_handle));
111 ALOGV("rsa=%p keystore_rsa_priv_enc => returning %p len %llu", rsa, to,
116 int keystore_rsa_priv_dec(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, argument
118 ALOGV("keystore_rsa_priv_dec(%d, %p, %p, %p, %d)", flen, from, to, rsa, paddin
[all...]
H A Dandroid_engine.cpp36 #include <openssl/rsa.h>
130 const char* rsa_get_key_id(const RSA* rsa) { argument
132 RSA_get_ex_data(rsa, g_keystore_engine->rsa_ex_index()));
139 int rsa_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, size_t len) { argument
140 ALOGV("rsa_private_transform(%p, %p, %p, %u)", rsa, out, in, (unsigned) len);
142 const char *key_id = rsa_get_key_id(rsa);
191 ALOGV("rsa=%p keystore_rsa_priv_dec successful", rsa);
323 Unique_RSA rsa(RSA_new_method(g_keystore_engine->engine()));
324 if (rsa
[all...]
/system/extras/verity/
H A Dgenerate_verity_key.c29 #include "mincrypt/rsa.h"
35 #include <openssl/rsa.h>
40 static int convert_to_mincrypt_format(RSA *rsa, RSAPublicKey *pkey) argument
45 if (RSA_size(rsa) != RSANUMBYTES)
57 BN_copy(n, rsa->n);
71 pkey->exponent = BN_get_word(rsa->e);
119 RSA *rsa = NULL; local
144 rsa = EVP_PKEY_get1_RSA(pkey);
145 if (!rsa) {
150 if (write_public_keyfile(rsa, key_fil
178 RSA* rsa = RSA_new(); local
[all...]
H A Dverify_boot_signature.c35 #include <openssl/rsa.h>
325 RSA *rsa = NULL; local
341 if ((rsa = EVP_PKEY_get1_RSA(pkey)) == NULL) {
347 bs->signature->data, bs->signature->length, rsa)) {
359 if (rsa) {
360 RSA_free(rsa);
/system/core/adb/
H A Dadb_auth_host.cpp43 #include "mincrypt/rsa.h"
52 #include <openssl/rsa.h>
64 RSA *rsa; member in struct:adb_private_key
71 static int RSA_to_RSAPublicKey(RSA *rsa, RSAPublicKey *pkey) argument
84 if (RSA_size(rsa) != RSANUMBYTES) {
90 BN_copy(n, rsa->n);
104 pkey->exponent = BN_get_word(rsa->e);
224 RSA* rsa = RSA_new(); local
231 if (!pkey || !exponent || !rsa) {
237 RSA_generate_key_ex(rsa, 204
[all...]

Completed in 128 milliseconds