Home
last modified time | relevance | path

Searched refs:rsa (Results 1 – 7 of 7) sorted by relevance

/hardware/interfaces/security/keymint/aidl/default/ta/
Dlib.rs26 hmac::BoringHmac, rng::BoringRng, rsa::BoringRsa, sha256::BoringSha256,
46 let rsa = BoringRsa::default(); in boringssl_crypto_impls() localVariable
55 rsa: Box::new(rsa), in boringssl_crypto_impls()
Dattest.rs21 crypto::ec, crypto::rsa, crypto::CurveType, crypto::KeyMaterial, wire::keymint,
382 key: KeyMaterial::Rsa(rsa::Key(hex::decode(RSA_ATTEST_KEY).unwrap()).into()), in new()
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp138 Unique_RSA rsa(RSA_new()); in qcom_km_get_keypair_public() local
139 if (rsa.get() == NULL) { in qcom_km_get_keypair_public()
144 rsa->n = BN_bin2bn(reinterpret_cast<const unsigned char*>(keyblob_ptr->modulus), in qcom_km_get_keypair_public()
146 if (rsa->n == NULL) { in qcom_km_get_keypair_public()
151 rsa->e = BN_bin2bn(reinterpret_cast<const unsigned char*>(&keyblob_ptr->public_exponent), in qcom_km_get_keypair_public()
153 if (rsa->e == NULL) { in qcom_km_get_keypair_public()
163 if (EVP_PKEY_assign_RSA(pkey.get(), rsa.get()) != 1) { in qcom_km_get_keypair_public()
167 OWNERSHIP_TRANSFERRED(rsa); in qcom_km_get_keypair_public()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintAidlTestBase.cpp1036 RSA_Ptr rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pub_key.get()))); in LocalVerifyMessage() local
1037 ASSERT_TRUE(rsa.get()); in LocalVerifyMessage()
1039 size_t key_len = RSA_size(rsa.get()); in LocalVerifyMessage()
1059 decrypted_data.data(), rsa.get(), openssl_padding); in LocalVerifyMessage()
1123 RSA_Ptr rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pub_key.get()))); in LocalRsaEncryptMessage() local
1124 if (rsa.get() == nullptr) { in LocalRsaEncryptMessage()
/hardware/interfaces/security/keymint/aidl/vts/performance/
DKeyMintBenchmark.cpp326 RSA_Ptr rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pub_key.get()))); in LocalRsaEncryptMessage() local
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp2618 RSA_Ptr rsa(EVP_PKEY_get1_RSA(pkey.get())); in TEST_P() local
2620 const BIGNUM* n = RSA_get0_n(rsa.get()); in TEST_P()
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp2450 RSA_Ptr rsa(EVP_PKEY_get1_RSA(pkey.get())); in TEST_P() local
2452 const BIGNUM* n = RSA_get0_n(rsa.get()); in TEST_P()