Home
last modified time | relevance | path

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

12

/system/bt/gd/security/
Decdh_keys.cc54 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()
Dinitial_informations.h66 std::array<uint8_t, 32> private_key; member
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()
80 std::array<uint8_t, 32> dhkey = ComputeDHKey(private_key, remote_public_key); in ExchangePublicKeys()
Dpairing_handler_le_unittest.cc207 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()
Dpairing_handler_le.cc28 std::tie(data.private_key, data.public_key) = GenerateECDHKeyPair(); in GenerateOobData()
/system/keymaster/include/keymaster/km_openssl/
Dkem.h47 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,
Dnist_curve_key_exchange.h42 NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error);
59 EC_KEY* private_key() { return private_key_.release(); } in private_key() function
Decies_kem.h47 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/
Decies_kem.cpp129 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()
Dnist_curve_key_exchange.cpp28 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/
Dpayload_signer.cc218 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/
Dnist_curve_key_exchange_test.cpp126 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()
Decies_kem_test.cpp66 kem->Decrypt(key_exchange->private_key(), output_encrypted_key, &decrypted_clear_key)); in TEST()
/system/bt/stack/smp/
Dsmp_keys.cc618 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/
DAndroid.bp21 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/
Drsa_2048_key.cpp49 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/
Drsa_2048_key.h31 bool CalculatePublicKey(std::string* out, RSA* private_key);
/system/extras/verity/
Dgenerate_verity_key.c34 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/
DAndroid.bp21 private_key: "com.android.bluetooth.updatable.pem",
/system/core/adb/apex/
DAndroid.bp49 private_key: "com.android.adbd.pem",
/system/timezone/apex/
DAndroid.bp42 private_key: "com.android.tzdata.pem",
/system/apex/apexer/testdata/
DAndroid.bp25 private_key: "com.android.example.apex.pem",
/system/apex/apexer/
DAndroid.bp97 private_key: "etc/com.android.support.apexer.pem",
/system/apex/tests/
DAndroid.bp100 private_key: "testdata/com.android.apex.test.pem",
/system/apex/shim/build/
DAndroid.bp33 private_key: ":com.android.apex.cts.shim.pem",
224 private_key: ":com.android.apex.cts.shim_not_pre_installed.pem",

12