Home
last modified time | relevance | path

Searched refs:public_key (Results 1 – 25 of 31) sorted by relevance

12

/system/bt/gd/security/
Decdh_keys.cc56 ecc::Point public_key; in GenerateECDHKeyPair() local
58 ECC_PointMult(&public_key, &(ecc::curve_p256.G), (uint32_t*)private_key_copy.data()); in GenerateECDHKeyPair()
61 memcpy(pk.x.data(), public_key.x, 32); in GenerateECDHKeyPair()
62 memcpy(pk.y.data(), public_key.y, 32); in GenerateECDHKeyPair()
69 ecc::Point public_key; in ValidateECDHPoint() local
70 memcpy(public_key.x, pk.x.data(), 32); in ValidateECDHPoint()
71 memcpy(public_key.y, pk.y.data(), 32); in ValidateECDHPoint()
72 memset(public_key.z, 0, 32); in ValidateECDHPoint()
73 return ECC_ValidatePoint(public_key); in ValidateECDHPoint()
Dpairing_handler_le_secure_connections.cc31 …const auto [private_key, public_key] = (remote_have_oob_data == OobDataFlag::NOT_PRESENT || !i.my_… in ExchangePublicKeys()
33 … : std::make_pair(i.my_oob_data->private_key, i.my_oob_data->public_key); in ExchangePublicKeys()
36 …PairingPublicKeyBuilder> myPublicKey = PairingPublicKeyBuilder::Create(public_key.x, public_key.y); in ExchangePublicKeys()
38 if (!ValidateECDHPoint(public_key)) { in ExchangePublicKeys()
82 const EcdhPublicKey& PKa = IAmMaster(i) ? public_key : remote_public_key; in ExchangePublicKeys()
83 const EcdhPublicKey& PKb = IAmMaster(i) ? remote_public_key : public_key; in ExchangePublicKeys()
Dpairing_handler_le_unittest.cc207 const auto [private_key, public_key] = GenerateECDHKeyPair(); in TEST_F()
209 …handler->OnCommandView(BuilderToView(PairingPublicKeyBuilder::Create(public_key.x, public_key.y))); in TEST_F()
220 …Octet16 Cb = crypto_toolbox::f4((uint8_t*)public_key.x.data(), (uint8_t*)my_public_key.x.data(), N… in TEST_F()
Dinitial_informations.h67 EcdhPublicKey public_key; member
Dpairing_handler_le.cc28 std::tie(data.private_key, data.public_key) = GenerateECDHKeyPair(); in GenerateOobData()
31 data.c = crypto_toolbox::f4(data.public_key.x.data(), data.public_key.x.data(), data.r, 0); in GenerateOobData()
/system/core/adb/daemon/
Dauth.cpp97 static void IteratePublicKeys(std::function<bool(std::string_view public_key)> f) { in IteratePublicKeys()
100 [](void* opaque, const char* public_key, size_t len) { in IteratePublicKeys() argument
101 return (*static_cast<decltype(f)*>(opaque))(std::string_view(public_key, len)); in IteratePublicKeys()
113 IteratePublicKeys([&](std::string_view public_key) { in adbd_tls_client_ca_list() argument
115 std::vector<std::string> split = android::base::Split(std::string(public_key), " \t"); in adbd_tls_client_ca_list()
160 IteratePublicKeys([&](std::string_view public_key) { in adbd_auth_verify() argument
162 std::vector<std::string> split = android::base::Split(std::string(public_key), " \t"); in adbd_auth_verify()
181 *auth_key = public_key; in adbd_auth_verify()
223 static void adbd_key_removed(const char* public_key, size_t len) { in adbd_key_removed() argument
226 std::string_view auth_key(public_key, len); in adbd_key_removed()
[all …]
/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc141 string public_key; in TEST_F() local
142 EXPECT_TRUE(utils::ReadFile(GetBuildArtifactsPath(path), &public_key)); in TEST_F()
143 auto payload_verifier = PayloadVerifier::CreateInstance(public_key); in TEST_F()
153 string public_key; in TEST_F() local
155 &public_key)); in TEST_F()
156 auto payload_verifier = PayloadVerifier::CreateInstance(public_key); in TEST_F()
161 public_key.clear(); in TEST_F()
163 &public_key)); in TEST_F()
164 payload_verifier = PayloadVerifier::CreateInstance(public_key); in TEST_F()
Dgenerate_delta_main.cc171 int VerifySignedPayload(const string& in_file, const string& public_key) { in VerifySignedPayload() argument
175 LOG_IF(FATAL, public_key.empty()) in VerifySignedPayload()
177 if (!PayloadSigner::VerifySignedPayload(in_file, public_key)) { in VerifySignedPayload()
342 DEFINE_string(public_key, "", "Path to public key in .pem format"); in Main()
Dpayload_signer.cc273 string public_key; in VerifySignedPayload() local
274 TEST_AND_RETURN_FALSE(utils::ReadFile(public_key_path, &public_key)); in VerifySignedPayload()
277 auto payload_verifier = PayloadVerifier::CreateInstance(public_key); in VerifySignedPayload()
/system/update_engine/payload_consumer/
Dpayload_verifier.cc153 for (const auto& public_key : public_keys_) { in VerifyRawSignature() local
154 int key_type = EVP_PKEY_id(public_key.get()); in VerifyRawSignature()
158 sig_data, public_key.get(), &sig_hash_data)) { in VerifyRawSignature()
178 EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(public_key.get()); in VerifyRawSignature()
200 const EVP_PKEY* public_key, in GetRawHashFromSignature() argument
206 RSA* rsa = EVP_PKEY_get0_RSA(public_key); in GetRawHashFromSignature()
Dcertificate_parser_android.cc104 std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)> public_key( in ReadPublicKeysFromCertificates() local
106 if (!public_key) { in ReadPublicKeysFromCertificates()
110 result.push_back(std::move(public_key)); in ReadPublicKeysFromCertificates()
Ddelta_performer_unittest.cc1094 string public_key; in TEST_F() local
1095 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1096 EXPECT_EQ(public_key, kResponseKey); in TEST_F()
1099 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1100 EXPECT_TRUE(public_key.empty()); in TEST_F()
1106 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1107 EXPECT_EQ(public_key, kExistingKey); in TEST_F()
1110 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1111 EXPECT_EQ(public_key, kExistingKey); in TEST_F()
1117 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
[all …]
Dpayload_verifier.h82 const EVP_PKEY* public_key,
/system/apex/apexd/apexd_testdata/
DAndroid.bp20 public_key: "com.android.apex.test_package.avbpubkey",
99 public_key: "com.android.apex.test_package.preinstall.avbpubkey",
116 public_key: "com.android.apex.test_package.postinstall.avbpubkey",
133 public_key: "com.android.apex.test_package.prepostinstall.fail.avbpubkey",
150 public_key: "com.android.apex.test_package.no_inst_key.avbpubkey",
166 public_key: "com.android.apex.test_package_2.avbpubkey",
/system/core/adb/client/
Dadb_wifi.cpp211 std::string public_key = adb_auth_get_userkey(); in adb_wifi_pair_device() local
212 CHECK_LE(public_key.size(), sizeof(system_info.data) - 1); // -1 for null byte in adb_wifi_pair_device()
213 memcpy(system_info.data, public_key.data(), public_key.size()); in adb_wifi_pair_device()
/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp108 uint8_t* public_key = new uint8_t[public_key_len]; in TEST() local
110 public_key, public_key_len, nullptr /* ctx */); in TEST()
119 ASSERT_FALSE(key_exchange->CalculateSharedKey(reinterpret_cast<const uint8_t*>(public_key), in TEST()
/system/core/adb/pairing_connection/
Dpairing_server.cpp373 auto [fd, info_type, public_key] = std::move(*p); in ConnectionEventsWorker()
374 if (public_key.has_value() && !public_key->empty()) { in ConnectionEventsWorker()
382 strncpy(reinterpret_cast<char*>(info.data), public_key->data(), in ConnectionEventsWorker()
383 public_key->size()); in ConnectionEventsWorker()
/system/bt/apex/
DAndroid.bp20 public_key: "com.android.bluetooth.updatable.avbpubkey",
/system/apex/apexd/
Dapex_file.cpp232 Result<const std::string> public_key = getApexKey(*key_name); in verifyVbMetaSignature() local
233 if (public_key.ok()) { in verifyVbMetaSignature()
237 if (!CompareKeys(pk, pk_len, *public_key)) { in verifyVbMetaSignature()
242 return public_key.error(); in verifyVbMetaSignature()
/system/core/adb/apex/
DAndroid.bp48 public_key: "com.android.adbd.avbpubkey",
/system/gsid/
Dgsi_tool.cpp441 AvbPublicKey public_key; in Status() local
443 status = image_service->getAvbPublicKey(image, &public_key, &err); in Status()
445 if (!public_key.bytes.empty()) { in Status()
446 for (auto b : public_key.sha1) { in Status()
/system/timezone/apex/
DAndroid.bp41 public_key: "com.android.tzdata.avbpubkey",
/system/apex/apexer/testdata/
DAndroid.bp24 public_key: "com.android.example.apex.avbpubkey",
/system/update_engine/scripts/
Dupdate_device.py421 if args.public_key:
428 cmds.append(['push', args.public_key, PAYLOAD_KEY_PATH])
/system/bt/stack/smp/
Dsmp_keys.cc688 Point public_key; in smp_process_private_key() local
694 ECC_PointMult(&public_key, &(curve_p256.G), (uint32_t*)private_key); in smp_process_private_key()
695 memcpy(p_cb->loc_publ_key.x, public_key.x, BT_OCTET32_LEN); in smp_process_private_key()
696 memcpy(p_cb->loc_publ_key.y, public_key.y, BT_OCTET32_LEN); in smp_process_private_key()

12