Home
last modified time | relevance | path

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

/hardware/interfaces/identity/support/tests/
DIdentityCredentialSupportTest.cpp154 optional<vector<uint8_t>> keyPair = support::createEcKeyPair(); in TEST() local
155 ASSERT_TRUE(keyPair); in TEST()
156 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair.value()); in TEST()
158 optional<vector<uint8_t>> pubKey = support::ecKeyPairGetPublicKey(keyPair.value()); in TEST()
204 optional<vector<uint8_t>> keyPair = support::createEcKeyPair(); in TEST() local
205 ASSERT_TRUE(keyPair); in TEST()
206 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair.value()); in TEST()
208 optional<vector<uint8_t>> pubKey = support::ecKeyPairGetPublicKey(keyPair.value()); in TEST()
235 optional<vector<uint8_t>> keyPair = support::createEcKeyPair(); in TEST() local
236 ASSERT_TRUE(keyPair); in TEST()
[all …]
/hardware/interfaces/identity/support/include/android/hardware/identity/support/
DIdentityCredentialSupport.h130 optional<vector<uint8_t>> ecKeyPairGetPublicKey(const vector<uint8_t>& keyPair);
135 optional<vector<uint8_t>> ecKeyPairGetPrivateKey(const vector<uint8_t>& keyPair);
148 optional<vector<uint8_t>> ecKeyPairGetPkcs12(const vector<uint8_t>& keyPair, const string& name,
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp951 vector<uint8_t> keyPair(size); in createEcKeyPairAndAttestation() local
952 unsigned char* p = keyPair.data(); in createEcKeyPairAndAttestation()
955 return make_pair(keyPair, attestationCert.value()); in createEcKeyPairAndAttestation()
988 vector<uint8_t> keyPair; in createEcKeyPair() local
989 keyPair.resize(size); in createEcKeyPair()
990 unsigned char* p = keyPair.data(); in createEcKeyPair()
992 return keyPair; in createEcKeyPair()
995 optional<vector<uint8_t>> ecKeyPairGetPublicKey(const vector<uint8_t>& keyPair) { in ecKeyPairGetPublicKey() argument
996 const unsigned char* p = (const unsigned char*)keyPair.data(); in ecKeyPairGetPublicKey()
997 auto pkey = EVP_PKEY_Ptr(d2i_PrivateKey(EVP_PKEY_EC, nullptr, &p, keyPair.size())); in ecKeyPairGetPublicKey()
[all …]
/hardware/interfaces/identity/aidl/default/
DWritableIdentityCredential.cpp85 vector<uint8_t> keyPair = keyAttestationPair.value().first; in getAttestationCertificate() local
88 optional<vector<uint8_t>> pubKey = support::ecKeyPairGetPublicKey(keyPair); in getAttestationCertificate()
96 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair); in getAttestationCertificate()