Searched refs:compute_shared_key (Results 1 – 7 of 7) sorted by relevance
75 pub fn compute_shared_key(&self, other_public_key: &PublicKey) -> Option<[u8; SHARED_KEY_LEN]> { in compute_shared_key() method129 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()
134 pub fn compute_shared_key(&self, other_public_key: &PublicKey<C>) -> Vec<u8> { in compute_shared_key() method189 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()
52 self.secret.compute_shared_key(&other_pub.0).ok_or(Error::WrongSize) in diffie_hellman()
109 let shared_secret = self.secret.compute_shared_key(&other_pub.0); in diffie_hellman()
100 match private_key.compute_shared_key(public_key[..x25519::PUBLIC_KEY_LEN].try_into()?) { in dh()