Searched refs:pub_key (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/security/keymint/support/ |
D | remote_prov_utils.cpp | 46 bytevec pub_key(ED25519_PUBLIC_KEY_LEN); in generateEekChain() local 49 ED25519_keypair(pub_key.data(), priv_key.data()); in generateEekChain() 59 .add(CoseKey::PUBKEY_X, pub_key) in generateEekChain() 69 bytevec pub_key(X25519_PUBLIC_VALUE_LEN); in generateEekChain() local 71 X25519_keypair(pub_key.data(), priv_key.data()); in generateEekChain() 79 .add(CoseKey::PUBKEY_X, pub_key) in generateEekChain() 86 return EekChain{eekChain.encode(), pub_key, priv_key}; in generateEekChain()
|
/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | KeyMintAidlTestBase.cpp | 700 EVP_PKEY_Ptr pub_key(X509_get_pubkey(key_cert.get())); in LocalVerifyMessage() local 701 ASSERT_TRUE(pub_key.get()); in LocalVerifyMessage() 711 switch (EVP_PKEY_id(pub_key.get())) { in LocalVerifyMessage() 713 vector<uint8_t> data((EVP_PKEY_bits(pub_key.get()) + 7) / 8); in LocalVerifyMessage() 716 EC_KEY_Ptr ecdsa(EVP_PKEY_get1_EC_KEY(pub_key.get())); in LocalVerifyMessage() 725 vector<uint8_t> data(EVP_PKEY_size(pub_key.get())); in LocalVerifyMessage() 729 RSA_Ptr rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pub_key.get()))); in LocalVerifyMessage() 779 ASSERT_EQ(1, EVP_DigestVerifyInit(&digest_ctx, &pkey_ctx, md, nullptr, pub_key.get())); in LocalVerifyMessage() 806 EVP_PKEY_Ptr pub_key(X509_get_pubkey(key_cert.get())); in LocalRsaEncryptMessage() local 807 RSA_Ptr rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pub_key.get()))); in LocalRsaEncryptMessage() [all …]
|