/system/bt/gd/security/ |
D | ecdh_keys.cc | 54 std::array<uint8_t, 32> private_key = GenerateRandom<32>(); in GenerateECDHKeyPair() local 55 std::array<uint8_t, 32> private_key_copy = private_key; in GenerateECDHKeyPair() 65 …return std::make_pair<std::array<uint8_t, 32>, EcdhPublicKey>(std::move(private_key), std::move(pk… in GenerateECDHKeyPair() 78 uint32_t private_key[8]; in ComputeDHKey() local 79 memcpy(private_key, my_private_key.data(), 32); in ComputeDHKey() 85 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in ComputeDHKey()
|
D | initial_informations.h | 66 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() 80 std::array<uint8_t, 32> dhkey = ComputeDHKey(private_key, remote_public_key); in ExchangePublicKeys()
|
D | pairing_handler_le_unittest.cc | 207 const auto [private_key, public_key] = GenerateECDHKeyPair(); in TEST_F() 211 std::array<uint8_t, 32> dhkey = ComputeDHKey(private_key, my_public_key); in TEST_F()
|
D | pairing_handler_le.cc | 28 std::tie(data.private_key, data.public_key) = GenerateECDHKeyPair(); in GenerateOobData()
|
/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 | 42 NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error); 59 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() 303 auto private_key = CreatePrivateKeyFromPath(private_key_path); in SignHash() local 304 if (!private_key) { in SignHash() 309 int key_type = EVP_PKEY_id(private_key.get()); in SignHash() 312 RSA* rsa = EVP_PKEY_get0_RSA(private_key.get()); in SignHash() 333 EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(private_key.get()); in SignHash()
|
/system/keymaster/tests/ |
D | nist_curve_key_exchange_test.cpp | 126 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 | 66 kem->Decrypt(key_exchange->private_key(), output_encrypted_key, &decrypted_clear_key)); in TEST()
|
/system/bt/stack/smp/ |
D | smp_keys.cc | 618 memcpy((void*)p_cb->private_key, rand, BT_OCTET8_LEN); in smp_create_private_key() 621 memcpy((void*)&p_cb->private_key[8], rand, BT_OCTET8_LEN); in smp_create_private_key() 624 memcpy((void*)&p_cb->private_key[16], rand, BT_OCTET8_LEN); in smp_create_private_key() 627 memcpy((void*)&p_cb->private_key[24], rand, in smp_create_private_key() 664 memcpy(p_cb->private_key, p_cb->sc_oob_data.loc_oob_data.private_key_used, in smp_use_oob_private_key() 689 BT_OCTET32 private_key; in smp_process_private_key() local 693 memcpy(private_key, p_cb->private_key, BT_OCTET32_LEN); in smp_process_private_key() 694 ECC_PointMult(&public_key, &(curve_p256.G), (uint32_t*)private_key); in smp_process_private_key() 698 smp_debug_print_nbyte_little_endian(p_cb->private_key, "private", in smp_process_private_key() 722 BT_OCTET32 private_key; in smp_compute_dhkey() local [all …]
|
/system/apex/apexd/apexd_testdata/ |
D | Android.bp | 21 private_key: "com.android.apex.test_package.pem", 100 private_key: "com.android.apex.test_package.preinstall.pem", 117 private_key: "com.android.apex.test_package.postinstall.pem", 134 private_key: "com.android.apex.test_package.prepostinstall.fail.pem", 151 private_key: "com.android.apex.test_package.no_inst_key.pem", 167 private_key: "com.android.apex.test_package_2.pem",
|
/system/core/adb/crypto/ |
D | rsa_2048_key.cpp | 49 bool CalculatePublicKey(std::string* out, RSA* private_key) { in CalculatePublicKey() argument 51 if (!android_pubkey_encode(private_key, binary_key_data, sizeof(binary_key_data))) { in CalculatePublicKey()
|
/system/core/adb/crypto/include/adb/crypto/ |
D | rsa_2048_key.h | 31 bool CalculatePublicKey(std::string* out, RSA* private_key);
|
/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/bt/apex/ |
D | Android.bp | 21 private_key: "com.android.bluetooth.updatable.pem",
|
/system/core/adb/apex/ |
D | Android.bp | 49 private_key: "com.android.adbd.pem",
|
/system/timezone/apex/ |
D | Android.bp | 42 private_key: "com.android.tzdata.pem",
|
/system/apex/apexer/testdata/ |
D | Android.bp | 25 private_key: "com.android.example.apex.pem",
|
/system/apex/apexer/ |
D | Android.bp | 97 private_key: "etc/com.android.support.apexer.pem",
|
/system/apex/tests/ |
D | Android.bp | 100 private_key: "testdata/com.android.apex.test.pem",
|
/system/apex/shim/build/ |
D | Android.bp | 33 private_key: ":com.android.apex.cts.shim.pem", 224 private_key: ":com.android.apex.cts.shim_not_pre_installed.pem",
|