Home
last modified time | relevance | path

Searched refs:compute_shared_key (Results 1 – 7 of 7) sorted by relevance

/aosp_15_r20/external/boringssl/src/rust/bssl-crypto/src/
H A Dx25519.rs75 pub fn compute_shared_key(&self, other_public_key: &PublicKey) -> Option<[u8; SHARED_KEY_LEN]> { in compute_shared_key() method
129 let shared_secret = private_key.compute_shared_key(&public_key).unwrap(); in known_vector()
137 .compute_shared_key(&[0u8; 32]) in all_zero_public_key()
H A Decdh.rs134 pub fn compute_shared_key(&self, other_public_key: &PublicKey<C>) -> Vec<u8> { in compute_shared_key() method
189 let shared_key1 = alice_private_key.compute_shared_key(&bob_public_key); in check_curve()
190 let shared_key2 = bob_private_key.compute_shared_key(&alice_public_key); in check_curve()
/aosp_15_r20/external/cronet/third_party/boringssl/src/rust/bssl-crypto/src/
H A Dx25519.rs75 pub fn compute_shared_key(&self, other_public_key: &PublicKey) -> Option<[u8; SHARED_KEY_LEN]> { in compute_shared_key() method
129 let shared_secret = private_key.compute_shared_key(&public_key).unwrap(); in known_vector()
137 .compute_shared_key(&[0u8; 32]) in all_zero_public_key()
H A Decdh.rs134 pub fn compute_shared_key(&self, other_public_key: &PublicKey<C>) -> Vec<u8> { in compute_shared_key() method
189 let shared_key1 = alice_private_key.compute_shared_key(&bob_public_key); in check_curve()
190 let shared_key2 = bob_private_key.compute_shared_key(&alice_public_key); in check_curve()
/aosp_15_r20/external/rust/beto-rust/nearby/crypto/crypto_provider_boringssl/src/
Dx25519.rs52 self.secret.compute_shared_key(&other_pub.0).ok_or(Error::WrongSize) in diffie_hellman()
Dp256.rs109 let shared_secret = self.secret.compute_shared_key(&other_pub.0); in diffie_hellman()
/aosp_15_r20/system/security/mls/mls-rs-crypto-boringssl/src/
H A Decdh.rs100 match private_key.compute_shared_key(public_key[..x25519::PUBLIC_KEY_LEN].try_into()?) { in dh()