Home
last modified time | relevance | path

Searched refs:DhKey (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/
Dec.rs92 pub enum DhKey { enum
97 impl DhKey { implementation
100 Some(DhKey::P192(inner)) in from_bytes()
102 Some(DhKey::P256(inner)) in from_bytes()
167 pub fn shared_secret(&self, peer_public_key: PublicKey) -> DhKey { in shared_secret() argument
177 DhKey::from_bytes(&bytes).unwrap() in shared_secret()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/
Dsecure_simple_pairing.rs20 use crate::lmp::ec::{DhKey, PrivateKey, PublicKey};
78 fn link_key_type(auth_method: AuthenticationMethod, dh_key: DhKey) -> hci::KeyType { in link_key_type()
83 (DhKey::P256(_), OutOfBand | PasskeyEntry | NumericComparisonUserConfirm) => { in link_key_type()
86 (DhKey::P192(_), OutOfBand | PasskeyEntry | NumericComparisonUserConfirm) => { in link_key_type()
89 (DhKey::P256(_), NumericComparisonJustWork) => UnauthenticatedP256, in link_key_type()
90 (DhKey::P192(_), NumericComparisonJustWork) => UnauthenticatedP192, in link_key_type()