/system/bt/gd/security/ |
D | ecdh_keys.cc | 55 std::array<uint8_t, 32> private_key = GenerateRandom<32>(); in GenerateECDHKeyPair() local 56 std::array<uint8_t, 32> private_key_copy = private_key; in GenerateECDHKeyPair() 66 …return std::make_pair<std::array<uint8_t, 32>, EcdhPublicKey>(std::move(private_key), std::move(pk… in GenerateECDHKeyPair() 79 uint32_t private_key[8]; in ComputeDHKey() local 80 memcpy(private_key, my_private_key.data(), 32); in ComputeDHKey() 86 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in ComputeDHKey()
|
D | initial_informations.h | 71 std::array<uint8_t, 32> private_key; member
|
D | pairing_handler_le_secure_connections.cc | 31 …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() 85 std::array<uint8_t, 32> dhkey = ComputeDHKey(private_key, remote_public_key); in ExchangePublicKeys()
|
/system/keymaster/include/keymaster/km_openssl/ |
D | kem.h | 47 virtual bool Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) = 0; 48 virtual bool Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key,
|
D | nist_curve_key_exchange.h | 41 NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error); 58 EC_KEY* private_key() { return private_key_.release(); } in private_key() function
|
D | ecies_kem.h | 47 bool Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) override; 48 bool Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key, size_t encrypted_key_len,
|
/system/keymaster/km_openssl/ |
D | ecies_kem.cpp | 129 bool EciesKem::Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) { in Decrypt() argument 130 return Decrypt(private_key, encrypted_key.peek_read(), encrypted_key.available_read(), in Decrypt() 135 bool EciesKem::Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key, size_t encrypted_key_len, in Decrypt() argument 139 key_exchange_.reset(new (std::nothrow) NistCurveKeyExchange(private_key, &error)); in Decrypt()
|
D | nist_curve_key_exchange.cpp | 28 NistCurveKeyExchange::NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error) in NistCurveKeyExchange() argument 29 : private_key_(private_key) { in NistCurveKeyExchange()
|
/system/update_engine/payload_generator/ |
D | payload_signer.cc | 218 auto private_key = std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>( in CreatePrivateKeyFromPath() local 221 return private_key; in CreatePrivateKeyFromPath() 229 auto private_key = CreatePrivateKeyFromPath(private_key_path); in GetMaximumSignatureSize() local 230 if (!private_key) { in GetMaximumSignatureSize() 235 *signature_size = EVP_PKEY_size(private_key.get()); in GetMaximumSignatureSize() 301 auto private_key = CreatePrivateKeyFromPath(private_key_path); in SignHash() local 302 if (!private_key) { in SignHash() 307 int key_type = EVP_PKEY_id(private_key.get()); in SignHash() 310 RSA* rsa = EVP_PKEY_get0_RSA(private_key.get()); in SignHash() 330 EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(private_key.get()); in SignHash()
|
/system/keymaster/tests/ |
D | nist_curve_key_exchange_test.cpp | 124 key_exchange->private_key(), nullptr /* kdf */)); in TEST() 186 string private_key = hex2str(test.my_private_key); in TEST() local 189 const uint8_t* private_key_data = reinterpret_cast<const uint8_t*>(private_key.data()); in TEST() 191 d2i_ECPrivateKey(nullptr, &private_key_data, private_key.size())); in TEST()
|
D | ecies_kem_test.cpp | 64 kem->Decrypt(key_exchange->private_key(), output_encrypted_key, &decrypted_clear_key)); in TEST()
|
/system/bt/stack/smp/ |
D | smp_keys.cc | 601 p_cb->private_key[i] = saved_local_oob_data.private_key_used[i]; in smp_create_private_key() 615 memcpy((void*)p_cb->private_key, rand, BT_OCTET8_LEN); in smp_create_private_key() 618 memcpy((void*)&p_cb->private_key[8], rand, BT_OCTET8_LEN); in smp_create_private_key() 621 memcpy((void*)&p_cb->private_key[16], rand, BT_OCTET8_LEN); in smp_create_private_key() 624 memcpy((void*)&p_cb->private_key[24], rand, in smp_create_private_key() 660 memcpy(p_cb->private_key, p_cb->sc_oob_data.loc_oob_data.private_key_used, in smp_use_oob_private_key() 685 BT_OCTET32 private_key; in smp_process_private_key() local 689 memcpy(private_key, p_cb->private_key, BT_OCTET32_LEN); in smp_process_private_key() 690 ECC_PointMult(&public_key, &(curve_p256.G), (uint32_t*)private_key); in smp_process_private_key() 694 smp_debug_print_nbyte_little_endian(p_cb->private_key, "private", in smp_process_private_key() [all …]
|
/system/extras/verity/ |
D | generate_verity_key.c | 34 static int write_public_keyfile(RSA *private_key, const char *private_key_path) in write_public_keyfile() argument 44 if (!android_pubkey_encode(private_key, key_data, sizeof(key_data))) in write_public_keyfile()
|
/system/update_engine/ |
D | download_action_android_unittest.cc | 114 std::string private_key = in TEST_F() local 117 manifest_file.path(), blob_file.path(), private_key, &metadata_size); in TEST_F() 119 ASSERT_TRUE(PayloadSigner::SignatureBlobLength({private_key}, in TEST_F()
|
/system/security/keystore2/src/ |
D | ec_crypto.rs | 44 pub fn private_key(&self) -> Result<ZVec> { in private_key() method 130 let recipient = ECDHPrivateKey::from_private_key(&recipient.private_key()?)?; in test_crypto_roundtrip()
|
/system/bt/apex/ |
D | Android.bp | 31 private_key: "com.android.bluetooth.updatable.pem",
|
/system/tools/aidl/build/apex/ |
D | Android.bp | 27 private_key: "com.android.aidltest.pem",
|
/system/apex/apexd/apexd_testdata/ |
D | Android.bp | 25 private_key: "com.android.apex.test_package.pem", 32 private_key: "com.android.apex.compressed.pem", 274 private_key: "com.android.apex.test_package.preinstall.pem", 292 private_key: "com.android.apex.test_package.postinstall.pem", 310 private_key: "com.android.apex.test_package.prepostinstall.fail.pem", 328 private_key: "com.android.apex.test_package.no_inst_key.pem", 356 private_key: "com.android.apex.test_package_2.pem",
|
/system/apex/tools/ |
D | create_apex_skeleton.sh | 28 private_key: "${APEX_NAME}.pem",
|
/system/timezone/apex/ |
D | Android.bp | 49 private_key: "com.android.tzdata.pem",
|
/system/apex/tests/testdata/sharedlibs/build/com.android.apex.test.baz/ |
D | Android.bp | 21 private_key: "com.android.apex.test.baz.pem",
|
/system/apex/tests/testdata/sharedlibs/build/com.android.apex.test.bar/ |
D | Android.bp | 21 private_key: "com.android.apex.test.bar.pem",
|
/system/apex/tests/testdata/sharedlibs/build/com.android.apex.test.foo/ |
D | Android.bp | 21 private_key: "com.android.apex.test.foo.pem",
|
/system/apex/apexer/testdata/ |
D | Android.bp | 29 private_key: "com.android.example.apex.pem",
|
/system/apex/tests/testdata/sharedlibs/build/com.android.apex.test.pony/ |
D | Android.bp | 21 private_key: "com.android.apex.test.pony.pem",
|