Home
last modified time | relevance | path

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

12

/system/bt/gd/security/
Decdh_keys.cc57 ecc::Point public_key; in GenerateECDHKeyPair() local
59 ECC_PointMult(&public_key, &(ecc::curve_p256.G), (uint32_t*)private_key_copy.data()); in GenerateECDHKeyPair()
62 memcpy(pk.x.data(), public_key.x, 32); in GenerateECDHKeyPair()
63 memcpy(pk.y.data(), public_key.y, 32); in GenerateECDHKeyPair()
70 ecc::Point public_key; in ValidateECDHPoint() local
71 memcpy(public_key.x, pk.x.data(), 32); in ValidateECDHPoint()
72 memcpy(public_key.y, pk.y.data(), 32); in ValidateECDHPoint()
73 memset(public_key.z, 0, 32); in ValidateECDHPoint()
74 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()
62 if (public_key.x == remote_public_key.x) { in ExchangePublicKeys()
87 const EcdhPublicKey& PKa = IAmCentral(i) ? public_key : remote_public_key; in ExchangePublicKeys()
88 const EcdhPublicKey& PKb = IAmCentral(i) ? remote_public_key : public_key; in ExchangePublicKeys()
Dpairing_handler_le_unittest.cc210 const auto [private_key, public_key] = GenerateECDHKeyPair(); in TEST_F()
212 …handler->OnCommandView(BuilderToView(PairingPublicKeyBuilder::Create(public_key.x, public_key.y))); in TEST_F()
223 …Octet16 Cb = crypto_toolbox::f4((uint8_t*)public_key.x.data(), (uint8_t*)my_public_key.x.data(), N… in TEST_F()
Dinitial_informations.h72 EcdhPublicKey public_key; member
/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.cc143 int VerifySignedPayload(const string& in_file, const string& public_key) { in VerifySignedPayload() argument
147 LOG_IF(FATAL, public_key.empty()) in VerifySignedPayload()
149 if (!PayloadSigner::VerifySignedPayload(in_file, public_key)) { in VerifySignedPayload()
351 DEFINE_string(public_key, "", "Path to public key in .pem format"); in Main()
Dpayload_signer.cc271 string public_key; in VerifySignedPayload() local
272 TEST_AND_RETURN_FALSE(utils::ReadFile(public_key_path, &public_key)); in VerifySignedPayload()
275 auto payload_verifier = PayloadVerifier::CreateInstance(public_key); in VerifySignedPayload()
/system/security/keystore2/src/
Dec_crypto.rs50 pub fn public_key(&self) -> Result<Vec<u8>> { in public_key() method
90 .public_key() in encrypt_message()
111 let recipient_public_key = self.public_key()?; in decrypt_message()
129 ECDHPrivateKey::encrypt_message(&recipient.public_key()?, message)?; in test_crypto_roundtrip()
Dsuper_key.rs472 match (metadata.public_key(), metadata.salt(), metadata.iv(), metadata.aead_tag()) { in unwrap_key_with_key()
473 (Some(public_key), Some(salt), Some(iv), Some(aead_tag)) => { in unwrap_key_with_key()
475 .and_then(|k| k.decrypt_message(public_key, salt, iv, blob, aead_tag)) in unwrap_key_with_key()
480 (public_key, salt, iv, aead_tag) => { in unwrap_key_with_key()
486 public_key.is_some(), in unwrap_key_with_key()
762 let public_key = in handle_super_encryption_on_key_init() localVariable
768 ECDHPrivateKey::encrypt_message(public_key, key_blob).context(concat!( in handle_super_encryption_on_key_init()
833 let (super_key, public_key) = match key_type.algorithm { in get_or_create_super_key()
846 key.public_key() in get_or_create_super_key()
858 if let Some(pk) = public_key { in get_or_create_super_key()
Dremote_provisioning.rs339 public_key: &[u8], in provision_cert_chain()
349 public_key, in provision_cert_chain()
464 public_key: &[u8], in provisionCertChain()
472 self.provision_cert_chain(public_key, batch_cert, certs, expiration_date, sec_level), in provisionCertChain()
/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()
176 EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(public_key.get()); in VerifyRawSignature()
198 const EVP_PKEY* public_key, in GetRawHashFromSignature() argument
204 RSA* rsa = EVP_PKEY_get0_RSA(const_cast<EVP_PKEY*>(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.cc1022 string public_key; in TEST_F() local
1023 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1024 EXPECT_EQ(public_key, kResponseKey); in TEST_F()
1027 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1028 EXPECT_TRUE(public_key.empty()); in TEST_F()
1034 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1035 EXPECT_EQ(public_key, kExistingKey); in TEST_F()
1038 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
1039 EXPECT_EQ(public_key, kExistingKey); in TEST_F()
1045 EXPECT_TRUE(performer_.GetPublicKey(&public_key)); in TEST_F()
[all …]
Dpayload_verifier.h82 const EVP_PKEY* public_key,
/system/security/ondevice-signing/
DCertUtils.cpp103 EVP_PKEY* public_key = EVP_PKEY_new(); in createSelfSignedCertificate() local
104 EVP_PKEY_assign_RSA(public_key, rsaPubkey->release()); in createSelfSignedCertificate()
106 if (!X509_set_pubkey(x509.get(), public_key)) { in createSelfSignedCertificate()
157 EVP_PKEY_free(public_key); in createSelfSignedCertificate()
186 EVP_PKEY* public_key = d2i_PUBKEY(nullptr, &keyDataBytes, keyData.size()); in extractPublicKeyFromSubjectPublicKeyInfo() local
188 return extractPublicKey(public_key); in extractPublicKeyFromSubjectPublicKeyInfo()
/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp106 uint8_t* public_key = new uint8_t[public_key_len]; in TEST() local
108 public_key, public_key_len, nullptr /* ctx */); in TEST()
117 ASSERT_FALSE(key_exchange->CalculateSharedKey(reinterpret_cast<const uint8_t*>(public_key), in TEST()
/system/apex/apexd/
Dapex_file_repository_test.cpp192 auto public_key = instance.GetPublicKey("com.android.apex.test_package"); in TEST() local
193 ASSERT_TRUE(IsOk(public_key)); in TEST()
206 ASSERT_NE(*public_key, apex->GetBundledPublicKey()); in TEST()
227 auto public_key = instance.GetPublicKey("com.android.apex.compressed"); in TEST() local
228 ASSERT_TRUE(IsOk(public_key)); in TEST()
241 ASSERT_NE(*public_key, apex->GetBundledPublicKey()); in TEST()
Dapex_file.cpp278 const std::string& public_key) { in VerifyVbMeta() argument
300 if (!CompareKeys(st->data(), st->size(), public_key)) { in VerifyVbMeta()
357 const std::string& public_key) const { in VerifyApexVerity()
375 VerifyVbMeta(*this, fd, **footer, public_key); in VerifyApexVerity()
Dapex_file.h56 const std::string& public_key) const;
/system/bt/apex/
DAndroid.bp30 public_key: "com.android.bluetooth.updatable.avbpubkey",
/system/tools/aidl/build/apex/
DAndroid.bp26 public_key: "com.android.aidltest.pubkey",
/system/apex/apexd/apexd_testdata/
DAndroid.bp24 public_key: "com.android.apex.test_package.avbpubkey",
31 public_key: "com.android.apex.compressed.avbpubkey",
273 public_key: "com.android.apex.test_package.preinstall.avbpubkey",
291 public_key: "com.android.apex.test_package.postinstall.avbpubkey",
309 public_key: "com.android.apex.test_package.prepostinstall.fail.avbpubkey",
327 public_key: "com.android.apex.test_package.no_inst_key.avbpubkey",
355 public_key: "com.android.apex.test_package_2.avbpubkey",
/system/apex/tools/
Dcreate_apex_skeleton.sh27 public_key: "${APEX_NAME}.avbpubkey",
/system/gsid/
Dgsi_tool.cpp584 AvbPublicKey public_key; in Status() local
586 status = image_service->getAvbPublicKey(image, &public_key, &err); in Status()
588 if (!public_key.bytes.empty()) { in Status()
589 for (auto b : public_key.sha1) { in Status()
/system/timezone/apex/
DAndroid.bp48 public_key: "com.android.tzdata.avbpubkey",

12