Home
last modified time | relevance | path

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

123

/packages/modules/Virtualization/compos/compos_key_helper/
Dcompos_key_test.cpp43 ASSERT_EQ(key_pair.private_key, other_key_pair->private_key); in TEST_F()
51 ASSERT_NE(key_pair.private_key, other_key_pair->private_key); in TEST_F()
56 auto signature = sign(key_pair.private_key, data.data(), data.size()); in TEST_F()
64 auto signature = sign(key_pair.private_key, data.data(), data.size()); in TEST_F()
74 auto signature = sign(key_pair.private_key, data.data(), data.size()); in TEST_F()
85 auto signature = sign(key_pair.private_key, data.data(), data.size()); in TEST_F()
Dcompos_key.cpp47 ED25519_keypair_from_seed(result.public_key.data(), result.private_key.data(), seed.data()); in deriveKeyFromSecret()
51 Result<Signature> sign(const PrivateKey& private_key, const uint8_t* data, size_t data_size) { in sign() argument
53 if (!ED25519_sign(result.data(), data, data_size, private_key.data())) { in sign()
Dcompos_key.h30 PrivateKey private_key; member
37 android::base::Result<Signature> sign(const PrivateKey& private_key, const uint8_t* data,
Dcompos_key_main.cpp85 compos_key::sign(key_pair->private_key, in sign_input()
/packages/modules/Bluetooth/system/gd/security/
Decdh_keys.cc55 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()
Dpairing_handler_le_secure_connections.cc33 …const auto [private_key, public_key] = (remote_have_oob_data == OobDataFlag::NOT_PRESENT || !i.my_… in ExchangePublicKeys()
35 … : std::make_pair(i.my_oob_data->private_key, i.my_oob_data->public_key); in ExchangePublicKeys()
87 std::array<uint8_t, 32> dhkey = ComputeDHKey(private_key, remote_public_key); in ExchangePublicKeys()
Dinitial_informations.h71 std::array<uint8_t, 32> private_key; member
Dpairing_handler_le_unittest.cc210 const auto [private_key, public_key] = GenerateECDHKeyPair(); in TEST_F()
214 std::array<uint8_t, 32> dhkey = ComputeDHKey(private_key, my_public_key); in TEST_F()
/packages/modules/Bluetooth/system/stack/smp/
Dsmp_keys.cc604 p_cb->private_key[i] = saved_local_oob_data.private_key_used[i]; in smp_create_private_key()
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()
674 p_cb->private_key[i] = saved_local_oob_data.private_key_used[i]; in smp_use_oob_private_key()
686 memcpy(p_cb->private_key, p_cb->sc_oob_data.loc_oob_data.private_key_used, in smp_use_oob_private_key()
711 BT_OCTET32 private_key; in smp_process_private_key() local
715 memcpy(private_key, p_cb->private_key, BT_OCTET32_LEN); in smp_process_private_key()
716 ECC_PointMult(&public_key, &(curve_p256.G), (uint32_t*)private_key); in smp_process_private_key()
[all …]
/packages/modules/DnsResolver/tests/doh/src/
Ddns_https_frontend.rs74 private_key: String, field
110 private_key: String::new(), in new()
123 ensure!(!self.private_key.is_empty(), "private_key is empty"); in start()
158 pub fn set_private_key(&mut self, private_key: &str) -> Result<()> { in set_private_key()
159 self.private_key = private_key.to_string(); in set_private_key()
241 self.private_key.to_string(), in init_worker_thread_params()
418 private_key: String, in create_quiche_config()
434 wr.write_all(private_key.as_bytes()).expect("Failed to write to pipe"); in create_quiche_config()
Dffi.rs111 private_key: *const c_char, in frontend_set_private_key()
113 if private_key.is_null() { in frontend_set_private_key()
116 let private_key = CStr::from_ptr(private_key).to_str().unwrap(); in frontend_set_private_key() localVariable
117 doh.set_private_key(private_key).or_else(logging_and_return_err).is_ok() in frontend_set_private_key()
/packages/modules/vndk/apex/
DAndroid.bp38 private_key: "com.android.vndk.current.pem",
60 private_key: "com.android.vndk.v32.pem",
82 private_key: "com.android.vndk.v31.pem",
104 private_key: "com.android.vndk.v30.pem",
126 private_key: "com.android.vndk.v29.pem",
148 private_key: "com.android.vndk.v28.pem",
/packages/modules/Bluetooth/tools/rootcanal/lmp/src/test/
Dcontext.rs21 private_key: RefCell<Option<PrivateKey>>, field
104 self.private_key.borrow().clone() in get_private_key()
108 *self.private_key.borrow_mut() = Some(key.clone()) in set_private_key()
/packages/modules/Bluetooth/tools/rootcanal/lmp/src/procedure/
Dsecure_simple_pairing.rs388 let private_key = in initiate() localVariable
394 ctx.set_private_key(&private_key); in initiate()
395 let local_public_key = private_key.derive(); in initiate()
398 private_key.shared_secret(peer_public_key) in initiate()
569 let private_key = match peer_public_key { in respond() localVariable
573 ctx.set_private_key(&private_key); in respond()
574 let local_public_key = private_key.derive(); in respond()
576 private_key.shared_secret(peer_public_key) in respond()
/packages/modules/adb/crypto/
Drsa_2048_key.cpp28 bool CalculatePublicKey(std::string* out, RSA* private_key) { in CalculatePublicKey() argument
30 if (!android_pubkey_encode(private_key, binary_key_data, sizeof(binary_key_data))) { in CalculatePublicKey()
/packages/modules/Virtualization/microdroid/
DAndroid.bp370 private_key: ":microdroid_sign_key",
374 private_key: ":microdroid_sign_key",
378 private_key: ":microdroid_sign_key",
580 private_key: ":microdroid_sign_key",
/packages/modules/adb/crypto/include/adb/crypto/
Drsa_2048_key.h31 bool CalculatePublicKey(std::string* out, RSA* private_key);
/packages/modules/DnsResolver/tests/doh/include/
Dlib.rs.h82 bool frontend_set_private_key(DohFrontend *doh, const char *private_key);
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp90 bssl::UniquePtr<RSA> private_key(stringToRSAPrivateKey(kPrivatekey)); in startServer() local
91 if (SSL_CTX_use_RSAPrivateKey(ctx_.get(), private_key.get()) <= 0) { in startServer()
/packages/apps/CellBroadcastReceiver/apex/
DAndroid.bp25 private_key: "com.android.cellbroadcast.pem",
/packages/modules/common/javatests/com/android/modules/updatablesharedlibs/apex/
DAndroid.bp22 private_key: "com.android.modules.updatablesharedlibs.pem",
/packages/modules/adb/apex/
DAndroid.bp80 private_key: "com.android.adbd.pem",
/packages/modules/Bluetooth/tools/rootcanal/lmp/src/
Dec.rs275 fn generate_public_key(private_key: &BigInt) -> Self { in generate_public_key()
276 &Self::g() * private_key in generate_public_key()
/packages/modules/SEPolicy/apex/
DAndroid.bp42 private_key: "com.android.sepolicy.pem",
/packages/modules/Virtualization/compos/apex/
DAndroid.bp21 private_key: "com.android.compos.pem",

123