Searched refs:peer_public_key (Results 1 – 5 of 5) sorted by relevance
/packages/modules/OnDevicePersonalization/federatedcompute/jni/cpp/ |
D | hpke_jni.cc | 45 jbyte* peer_public_key = env->GetByteArrayElements(publicKey, 0); in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_encrypt() local 56 /* peer_public_key= */ reinterpret_cast<const uint8_t*>(peer_public_key), in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_encrypt() 60 env->ReleaseByteArrayElements(publicKey, peer_public_key, JNI_ABORT); in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_encrypt() 65 env->ReleaseByteArrayElements(publicKey, peer_public_key, JNI_ABORT); in Java_com_android_federatedcompute_services_encryption_jni_HpkeJni_encrypt()
|
/packages/modules/AdServices/adservices/service-core/jni/cpp/ |
D | hpke_jni.cpp | 45 jbyte* peer_public_key = env->GetByteArrayElements(publicKey, 0); in Java_com_android_adservices_HpkeJni_encrypt() local 56 /* peer_public_key= */ reinterpret_cast<const uint8_t*>(peer_public_key), in Java_com_android_adservices_HpkeJni_encrypt() 60 env->ReleaseByteArrayElements(publicKey, peer_public_key, JNI_ABORT); in Java_com_android_adservices_HpkeJni_encrypt() 65 env->ReleaseByteArrayElements(publicKey, peer_public_key, JNI_ABORT); in Java_com_android_adservices_HpkeJni_encrypt()
|
D | ohttp_jni.cpp | 137 jbyte *peer_public_key = env->GetByteArrayElements(publicKeyArray, 0); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed() local 160 reinterpret_cast<const uint8_t *>(peer_public_key), in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed() 166 env->ReleaseByteArrayElements(publicKeyArray, peer_public_key, JNI_ABORT); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed() 177 env->ReleaseByteArrayElements(publicKeyArray, peer_public_key, JNI_ABORT); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed()
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/ |
D | secure_simple_pairing.rs | 425 let peer_public_key = receive_public_key(ctx, 0).await; in initiate() localVariable 426 private_key.shared_secret(peer_public_key) in initiate() 678 let peer_public_key = receive_public_key(ctx, 0).await; in respond() localVariable 679 let private_key = match peer_public_key { in respond() 686 private_key.shared_secret(peer_public_key) in respond()
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/ |
D | ec.rs | 167 pub fn shared_secret(&self, peer_public_key: PublicKey) -> DhKey { in shared_secret() 170 (&peer_public_key.to_point::<P192r1>() * &self.to_bigint()).to_bytes() in shared_secret() 173 (&peer_public_key.to_point::<P256r1>() * &self.to_bigint()).to_bytes() in shared_secret()
|