Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc134 string public_key; in TEST_F() local
136 &public_key)); in TEST_F()
138 PayloadVerifier::VerifySignature(signature, public_key, hash_data_)); in TEST_F()
140 &public_key)); in TEST_F()
142 PayloadVerifier::VerifySignature(signature, public_key, hash_data_)); in TEST_F()
144 GetBuildArtifactsPath(kUnittestPublicKeyRSA4096Path), &public_key)); in TEST_F()
146 PayloadVerifier::VerifySignature(signature, public_key, hash_data_)); in TEST_F()
153 string public_key; in TEST_F() local
155 &public_key)); in TEST_F()
157 PayloadVerifier::VerifySignature(signature, public_key, hash_data_)); in TEST_F()
[all …]
Dpayload_signer.cc255 string public_key; in VerifySignedPayload() local
256 TEST_AND_RETURN_FALSE(utils::ReadFile(public_key_path, &public_key)); in VerifySignedPayload()
259 PayloadVerifier::VerifySignature(signature, public_key, payload_hash)); in VerifySignedPayload()
265 PayloadVerifier::VerifySignature(signature, public_key, metadata_hash)); in VerifySignedPayload()
Dgenerate_delta_main.cc168 int VerifySignedPayload(const string& in_file, const string& public_key) { in VerifySignedPayload() argument
172 LOG_IF(FATAL, public_key.empty()) in VerifySignedPayload()
174 if (!PayloadSigner::VerifySignedPayload(in_file, public_key)) { in VerifySignedPayload()
329 DEFINE_string(public_key, "", "Path to public key in .pem format"); in Main()
/system/apex/apexd/apexd_testdata/
DAndroid.bp20 public_key: "com.android.apex.test_package.avbpubkey",
45 public_key: "com.android.apex.test_package.preinstall.avbpubkey",
62 public_key: "com.android.apex.test_package.postinstall.avbpubkey",
79 public_key: "com.android.apex.test_package.prepostinstall.fail.avbpubkey",
96 public_key: "com.android.apex.test_package.no_inst_key.avbpubkey",
112 public_key: "com.android.apex.test_package_2.avbpubkey",
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc1013 string public_key; in TEST_F() local
1014 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1015 EXPECT_EQ(public_key, kResponseKey); in TEST_F()
1018 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1019 EXPECT_TRUE(public_key.empty()); in TEST_F()
1025 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1026 EXPECT_EQ(public_key, kExistingKey); in TEST_F()
1029 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1030 EXPECT_EQ(public_key, kExistingKey); in TEST_F()
1036 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
[all …]
Ddelta_performer.cc529 string public_key; in ParsePayloadMetadata() local
530 if (!GetPublicKey(&public_key)) { in ParsePayloadMetadata()
539 payload, payload_->metadata_signature, public_key); in ParsePayloadMetadata()
1787 string public_key; in VerifyPayload() local
1788 if (!GetPublicKey(&public_key)) { in VerifyPayload()
1811 if (public_key.empty()) { in VerifyPayload()
1822 signatures_message_data_, public_key, hash_data)) { in VerifyPayload()
/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/apex/apexd/
Dapex_file.cpp305 StatusOr<const std::string> public_key = getApexKey(*key_name); in verifyVbMetaSignature() local
307 if (public_key.Ok()) { in verifyVbMetaSignature()
311 st = verifyPublicKey(pk, pk_len, *public_key); in verifyVbMetaSignature()
319 return public_key.ErrorStatus(); in verifyVbMetaSignature()
/system/netd/apex/
DAndroid.bp33 public_key: "com.android.resolv.avbpubkey",
/system/timezone/apex/
DAndroid.bp38 public_key: "com.android.tzdata.avbpubkey",
/system/apex/apexer/
DAndroid.bp54 public_key: "etc/com.android.support.apexer.avbpubkey",
/system/apex/shim/build/
DAndroid.bp34 public_key: ":com.android.apex.cts.shim.pubkey",
191 public_key: ":com.android.apex.cts.shim_not_pre_installed.pubkey",
/system/update_engine/scripts/
Dupdate_device.py410 if args.public_key:
417 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()
696 memcpy(p_cb->loc_publ_key.x, public_key.x, BT_OCTET32_LEN); in smp_process_private_key()
697 memcpy(p_cb->loc_publ_key.y, public_key.y, BT_OCTET32_LEN); in smp_process_private_key()
/system/update_engine/
Dupdate_attempter_android.cc398 string public_key; in VerifyPayloadApplicable() local
399 if (!utils::ReadFile(constants::kUpdatePayloadPublicKeyPath, &public_key)) { in VerifyPayloadApplicable()
403 payload_metadata.ValidateMetadataSignature(metadata, "", public_key); in VerifyPayloadApplicable()
/system/apex/tests/
DAndroid.bp143 public_key: "testdata/com.android.apex.test.avbpubkey",