[][src]Struct ssb_handshake::crypto::message::ClientAuth

pub struct ClientAuth(_);

Methods

impl ClientAuth[src]

pub const fn size() -> usize[src]

pub fn new(
    sk: &ClientSecretKey,
    pk: &ClientPublicKey,
    server_pk: &ServerPublicKey,
    net_key: &NetworkKey,
    shared_a: &SharedA,
    shared_b: &SharedB
) -> ClientAuth
[src]

pub fn from_buffer(b: Vec<u8>) -> Result<ClientAuth, HandshakeError>[src]

pub fn open_and_verify(
    self,
    server_pk: &ServerPublicKey,
    net_key: &NetworkKey,
    shared_a: &SharedA,
    shared_b: &SharedB
) -> Result<(ClientSignature, ClientPublicKey), HandshakeError>
[src]

pub fn as_slice(&self) -> &[u8][src]

pub fn to_vec(&self) -> Vec<u8>[src]

Auto Trait Implementations

impl Send for ClientAuth

impl Sync for ClientAuth

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]