pub struct ClientAuth(/* private fields */);Expand description
§Message 3 (Client to Server)
Implementations§
Source§impl ClientAuth
impl ClientAuth
pub const fn size() -> usize
pub fn new( sk: &ClientSecretKey, pk: &ClientPublicKey, server_pk: &ServerPublicKey, net_key: &NetworkKey, shared_a: &SharedA, shared_b: &SharedB, ) -> ClientAuth
pub fn from_buffer(b: Vec<u8>) -> Result<ClientAuth, HandshakeError>
pub fn open_and_verify( self, server_pk: &ServerPublicKey, net_key: &NetworkKey, shared_a: &SharedA, shared_b: &SharedB, ) -> Result<(ClientSignature, ClientPublicKey), HandshakeError>
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn to_vec(&self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for ClientAuth
impl RefUnwindSafe for ClientAuth
impl Send for ClientAuth
impl Sync for ClientAuth
impl Unpin for ClientAuth
impl UnsafeUnpin for ClientAuth
impl UnwindSafe for ClientAuth
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