pub struct Exchange { /* private fields */ }Implementations§
Source§impl Exchange
impl Exchange
pub fn new( klen: usize, id: Option<&str>, pk: &Sm2PublicKey, sk: &Sm2PrivateKey, rhs_id: Option<&str>, rhs_pk: &Sm2PublicKey, ) -> Sm2Result<Exchange>
pub fn exchange_1(&mut self) -> Sm2Result<Point>
pub fn exchange_2(&mut self, ra_point: &Point) -> Sm2Result<(Point, [u8; 32])>
pub fn exchange_3( &mut self, rb_point: &Point, sb: [u8; 32], ) -> Sm2Result<[u8; 32]>
pub fn exchange_4(&self, sa: [u8; 32], ra_point: &Point) -> Sm2Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Exchange
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnwindSafe for Exchange
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