Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp176 EVP_PKEY_Ptr pkey(EVP_PKEY_new()); in generateP256Key() local
179 if (ec_key.get() == nullptr || pkey.get() == nullptr) { in generateP256Key()
190 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ec_key.get()) != 1) { in generateP256Key()
195 return pkey; in generateP256Key()
198 optional<vector<uint8_t>> derEncodeKeyPair(const EVP_PKEY& pkey) { in derEncodeKeyPair() argument
199 int size = i2d_PrivateKey(&pkey, nullptr); in derEncodeKeyPair()
207 i2d_PrivateKey(&pkey, &p); in derEncodeKeyPair()
380 optional<vector<vector<uint8_t>>> createAttestation(EVP_PKEY* pkey, in createAttestation() argument
412 return signAttestationCertificate(context, pkey, applicationId, challenge, in createAttestation()
661 auto pkey = EVP_PKEY_Ptr(EVP_PKEY_new()); in certificateSignedByPublicKey() local
[all …]
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp158 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/
Dkeymaster_hidl_hal_test.cpp2076 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/
Dkeymaster_hidl_hal_test.cpp1700 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P() local
1701 ASSERT_TRUE(pkey.get()); in TEST_P()
1709 pkey.get())); in TEST_P()
1782 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P() local
1783 ASSERT_TRUE(pkey.get()); in TEST_P()
1791 pkey.get())) in TEST_P()
2449 EVP_PKEY_Ptr pkey(d2i_PUBKEY(nullptr /* alloc new */, &p, exported.size())); in TEST_P() local
2450 RSA_Ptr rsa(EVP_PKEY_get1_RSA(pkey.get())); in TEST_P()