Home
last modified time | relevance | path

Searched defs:rsa (Results 1 – 23 of 23) sorted by relevance

/system/extras/verity/
Dgenerate_verity_key.c40 static int convert_to_mincrypt_format(RSA *rsa, RSAPublicKey *pkey) in convert_to_mincrypt_format()
119 RSA *rsa = NULL; in convert_x509() local
178 RSA* rsa = RSA_new(); in generate_key() local
Dverify_boot_signature.c317 RSA *rsa = NULL; in verify_signature() local
/system/security/keystore-engine/
Drsa_meth.cpp44 int keystore_rsa_priv_enc(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, in keystore_rsa_priv_enc()
116 int keystore_rsa_priv_dec(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, in keystore_rsa_priv_dec()
213 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey)); in rsa_pkey_setup() local
Dandroid_engine.cpp130 const char* rsa_get_key_id(const RSA* rsa) { in rsa_get_key_id()
139 int rsa_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, size_t len) { in rsa_private_transform()
324 Unique_RSA rsa(RSA_new_method(g_keystore_engine->engine())); in wrap_rsa() local
/system/connectivity/shill/shims/
Dcrypto_util.cc80 RSA* rsa = *rsa_ptr; in EncryptByteStringImpl() local
121 RSA* rsa = NULL; in EncryptByteString() local
176 RSA* rsa = *rsa_ptr; in VerifyCredentialsImpl() local
316 RSA* rsa = NULL; in VerifyCredentials() local
/system/keymaster/
Drsa_key.h45 RsaKey(RSA* rsa, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, in RsaKey()
Dkeymaster0_engine.cpp182 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_)); in BlobToRsaKey() local
263 int Keymaster0Engine::rsa_private_transform(RSA* rsa, uint8_t* out, const uint8_t* in, size_t len) { in rsa_private_transform()
311 static bool data_too_large_for_public_modulus(const uint8_t* data, size_t len, const RSA* rsa) { in data_too_large_for_public_modulus()
317 int Keymaster0Engine::RsaPrivateTransform(RSA* rsa, uint8_t* out, const uint8_t* in, in RsaPrivateTransform()
Dkeymaster1_engine.cpp140 unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_.get())); in BuildRsaKey() local
222 unique_ptr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(key)); in GetData() local
289 int Keymaster1Engine::rsa_sign_raw(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_sign_raw()
314 int Keymaster1Engine::rsa_decrypt(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_decrypt()
Drsa_keymaster0_key.cpp112 unique_ptr<RSA, RSA_Delete> rsa(engine_->BlobToRsaKey(key_material)); in LoadKey() local
Drsa_keymaster1_operation.cpp127 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> rsa(GetEvpKey(rsa_km1_key, error)); in CreateOperation() local
Drsa_keymaster1_key.cpp113 unique_ptr<RSA, RSA_Delete> rsa(engine_->BuildRsaKey(key_material, additional_params, &error)); in LoadKey() local
Drsa_operation.cpp79 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> rsa(GetRsaKey(key, error)); in CreateRsaOperation() local
323 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in SignUndigested() local
430 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in VerifyUndigested() local
Dsoft_keymaster_context.cpp925 unique_ptr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(pubkey)); in FakeKeyAuthorizations() local
Dandroid_keymaster_test.cpp2010 unique_ptr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(pkey.get())); in TEST_P() local
/system/tpm/attestation/common/
Dcrypto_utility_impl.cc169 crypto::ScopedRSA rsa(d2i_RSAPublicKey(nullptr, &asn1_ptr, in GetRSASubjectPublicKeyInfo() local
192 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, in GetRSAPublicKey() local
243 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, in EncryptIdentityCredential() local
280 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, public_key.size())); in EncryptForUnbind() local
297 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, public_key.size())); in VerifySignature() local
Dtpm_utility_v1.cc694 crypto::ScopedRSA rsa(RSA_new()); in ConvertPublicKeyToDER() local
/system/core/adb/
Dadb_auth_host.cpp55 RSA *rsa; member
62 static int RSA_to_RSAPublicKey(RSA *rsa, RSAPublicKey *pkey) in RSA_to_RSAPublicKey()
215 RSA* rsa = RSA_new(); in generate_key() local
/system/update_engine/payload_consumer/
Dpayload_verifier.cc148 RSA* rsa = PEM_read_RSA_PUBKEY(fpubkey, nullptr, nullptr, dummy_password); in GetRawHashFromSignature() local
/system/tpm/trunks/
Dsession_manager_test.cc68 TPM2B_PUBLIC_KEY_RSA rsa; in GetValidRSAPublicKey() local
Dtrunks_client_test.cc992 crypto::ScopedRSA rsa(RSA_new()); in GenerateRSAKeyPair() local
1020 crypto::ScopedRSA rsa(d2i_RSAPublicKey(nullptr, &asn1_ptr, in VerifyRSASignature() local
Dtpm_generated.h1460 BYTE rsa[MAX_RSA_KEY_BYTES]; member
1509 TPM2B_PUBLIC_KEY_RSA rsa; member
1533 TPM2B_PRIVATE_KEY_RSA rsa; member
/system/security/softkeymaster/
Dkeymaster_openssl.cpp344 Unique_RSA rsa(RSA_new()); in generate_rsa_keypair() local
548 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey)); in sign_rsa() local
670 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey)); in verify_rsa() local
/system/update_engine/payload_generator/
Dpayload_signer.cc362 RSA* rsa = PEM_read_RSAPrivateKey(fprikey, nullptr, nullptr, nullptr); in SignHash() local