Home
last modified time | relevance | path

Searched refs:peer_public_key (Results 1 – 5 of 5) sorted by relevance

/packages/modules/OnDevicePersonalization/federatedcompute/jni/cpp/
Dhpke_jni.cc45 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/
Dhpke_jni.cpp45 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()
Dohttp_jni.cpp137 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/
Dsecure_simple_pairing.rs425 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/
Dec.rs167 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()