Searched refs:keyPair (Results 1 – 4 of 4) sorted by relevance
154 optional<vector<uint8_t>> keyPair = support::createEcKeyPair(); in TEST() local155 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() local205 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() local236 ASSERT_TRUE(keyPair); in TEST()[all …]
130 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,
951 vector<uint8_t> keyPair(size); in createEcKeyPairAndAttestation() local952 unsigned char* p = keyPair.data(); in createEcKeyPairAndAttestation()955 return make_pair(keyPair, attestationCert.value()); in createEcKeyPairAndAttestation()988 vector<uint8_t> keyPair; in createEcKeyPair() local989 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() argument996 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 …]
85 vector<uint8_t> keyPair = keyAttestationPair.value().first; in getAttestationCertificate() local88 optional<vector<uint8_t>> pubKey = support::ecKeyPairGetPublicKey(keyPair); in getAttestationCertificate()96 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair); in getAttestationCertificate()