Searched refs:pkey (Results 1 – 4 of 4) sorted by relevance
/hardware/interfaces/identity/support/src/ |
D | IdentityCredentialSupport.cpp | 736 auto pkey = EVP_PKEY_Ptr(EVP_PKEY_new()); in checkEcDsaSignature() local 737 if (ecKey.get() == nullptr || pkey.get() == nullptr) { in checkEcDsaSignature() 749 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ecKey.get()) != 1) { in checkEcDsaSignature() 915 auto pkey = ::keymaster::EVP_PKEY_Ptr(EVP_PKEY_new()); in createEcKeyPairAndAttestation() local 918 if (ec_key.get() == nullptr || pkey.get() == nullptr) { in createEcKeyPairAndAttestation() 929 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ec_key.get()) != 1) { in createEcKeyPairAndAttestation() 939 createAttestation(pkey.get(), applicationId, challenge, now * 1000, expireTimeMs); in createEcKeyPairAndAttestation() 945 int size = i2d_PrivateKey(pkey.get(), nullptr); in createEcKeyPairAndAttestation() 953 i2d_PrivateKey(pkey.get(), &p); in createEcKeyPairAndAttestation() 960 auto pkey = EVP_PKEY_Ptr(EVP_PKEY_new()); in createEcKeyPair() local [all …]
|
/hardware/qcom/keymaster/ |
D | keymaster_qcom.cpp | 158 Unique_EVP_PKEY pkey(EVP_PKEY_new()); in qcom_km_get_keypair_public() local 159 if (pkey.get() == NULL) { in qcom_km_get_keypair_public() 163 if (EVP_PKEY_assign_RSA(pkey.get(), rsa.get()) != 1) { in qcom_km_get_keypair_public() 169 int len = i2d_PUBKEY(pkey.get(), NULL); in qcom_km_get_keypair_public() 182 if (i2d_PUBKEY(pkey.get(), &tmp) != len) { in qcom_km_get_keypair_public()
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 2076 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P() local 2077 ASSERT_TRUE(pkey.get()); in TEST_P() 2085 pkey.get())); in TEST_P() 2160 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P() local 2161 ASSERT_TRUE(pkey.get()); in TEST_P() 2169 pkey.get())) in TEST_P() 2617 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, exported.size())); in TEST_P() local 2618 RSA_Ptr rsa(EVP_PKEY_get1_RSA(pkey.get())); in TEST_P()
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 1586 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P() local 1587 ASSERT_TRUE(pkey.get()); in TEST_P() 1595 pkey.get())); in TEST_P() 1667 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P() local 1668 ASSERT_TRUE(pkey.get()); in TEST_P() 1676 pkey.get())) in TEST_P() 2324 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, exported.size())); in TEST_P() local 2325 RSA_Ptr rsa(EVP_PKEY_get1_RSA(pkey.get())); in TEST_P()
|