Home
last modified time | relevance | path

Searched refs:privKey (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/identity/support/tests/
DIdentityCredentialSupportTest.cpp63 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair.value()); in TEST() local
64 ASSERT_TRUE(privKey); in TEST()
68 optional<vector<uint8_t>> signature = support::signEcDsa(privKey.value(), data); in TEST()
113 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair.value()); in TEST() local
114 ASSERT_TRUE(privKey); in TEST()
120 privKey.value(), data, {} /* detachedContent */, {} /* x5chain */); in TEST()
144 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair.value()); in TEST() local
145 ASSERT_TRUE(privKey); in TEST()
150 optional<vector<uint8_t>> coseSign1 = support::coseSignEcDsa(privKey.value(), {} /* data */, in TEST()
177 optional<vector<uint8_t>> privKey = support::ecKeyPairGetPrivateKey(keyPair.value()); in generateCertChain() local
[all …]
/hardware/interfaces/identity/aidl/default/
DEicOpsImpl.cc238 optional<vector<uint8_t>> privKey = in eicOpsCreateEcKey() local
240 if (!privKey) { in eicOpsCreateEcKey()
244 if (privKey.value().size() != EIC_P256_PRIV_KEY_SIZE) { in eicOpsCreateEcKey()
245 eicDebug("Private key is %zd bytes, expected %zd", privKey.value().size(), in eicOpsCreateEcKey()
263 memcpy(privateKey, privKey.value().data(), EIC_P256_PRIV_KEY_SIZE); in eicOpsCreateEcKey()
316 optional<vector<uint8_t>> privKey = in eicOpsCreateCredentialKey() local
318 if (!privKey) { in eicOpsCreateCredentialKey()
322 if (privKey.value().size() != EIC_P256_PRIV_KEY_SIZE) { in eicOpsCreateCredentialKey()
323 eicDebug("Private key is %zd bytes, expected %zd", privKey.value().size(), in eicOpsCreateCredentialKey()
328 memcpy(privateKey, privKey.value().data(), EIC_P256_PRIV_KEY_SIZE); in eicOpsCreateCredentialKey()
/hardware/interfaces/security/keymint/support/
Dremote_prov_utils.cpp63 bytevec privKey(32, 0); in ecKeyGetPrivateKey() local
64 BN_bn2binpad(bignum, privKey.data(), privKey.size()); in ecKeyGetPrivateKey()
65 return privKey; in ecKeyGetPrivateKey()
165 auto privKey = ecKeyGetPrivateKey(ec_key.get()); in generateEc256KeyPair() local
166 if (!privKey) return privKey.moveMessage(); in generateEc256KeyPair()
171 return std::make_tuple(pubKey.moveValue(), privKey.moveValue()); in generateEc256KeyPair()
177 bytevec privKey(X25519_PRIVATE_KEY_LEN); in generateX25519KeyPair() local
178 X25519_keypair(pubKey.data(), privKey.data()); in generateX25519KeyPair()
179 return std::make_tuple(std::move(pubKey), std::move(privKey)); in generateX25519KeyPair()
185 bytevec privKey(ED25519_PRIVATE_KEY_LEN); in generateED25519KeyPair() local
[all …]
/hardware/interfaces/identity/aidl/vts/
DUtil.cpp140 vector<uint8_t> privKey; in generateReaderCertificate() local
141 return generateReaderCertificate(serialDecimal, &privKey); in generateReaderCertificate()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintTest.cpp8637 EVP_PKEY_Ptr privKey; in TEST_P() local
8639 GenerateLocalEcKey(curve, &privKey, &encodedPublicKey); in TEST_P()
8642 CheckAgreement(std::move(kmPubKey), std::move(privKey), encodedPublicKey); in TEST_P()
8680 EVP_PKEY_Ptr privKey; in TEST_P() local
8682 GenerateLocalEcKey(curve, &privKey, &encodedPublicKey); in TEST_P()
8685 CheckAgreement(std::move(kmPubKey), std::move(privKey), encodedPublicKey); in TEST_P()
8706 EVP_PKEY_Ptr privKey; in TEST_P() local
8708 GenerateLocalEcKey(curve, &privKey, &encodedPublicKey); in TEST_P()
8740 EVP_PKEY_Ptr privKey; in TEST_P() local
8742 GenerateLocalEcKey(localCurve, &privKey, &encodedPublicKey); in TEST_P()