pub struct CPace { /* private fields */ }
Implementations§
Source§impl CPace
impl CPace
pub fn step1<T: AsRef<[u8]>>( password: &str, id_a: &str, id_b: &str, ad: Option<T>, ) -> Result<Step1Out, Error>
pub fn step2<T: AsRef<[u8]>>( step1_packet: &[u8; 48], password: &str, id_a: &str, id_b: &str, ad: Option<T>, ) -> Result<Step2Out, Error>
pub fn step3(&self, step2_packet: &[u8; 32]) -> Result<SharedKeys, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CPace
impl RefUnwindSafe for CPace
impl Send for CPace
impl Sync for CPace
impl Unpin for CPace
impl UnwindSafe for CPace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more