pub struct AuCPaceServerExpMutAuth<D, const K1: usize>{ /* private fields */ }Expand description
Server in the Explicity Mutual Authenticaton phase
Implementations§
Source§impl<D, const K1: usize> AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> AuCPaceServerExpMutAuth<D, K1>
Sourcepub fn receive_client_authenticator(
self,
client_authenticator: [u8; 64],
) -> Result<(SecretKey, ServerMessage<'static, K1>)>
pub fn receive_client_authenticator( self, client_authenticator: [u8; 64], ) -> Result<(SecretKey, ServerMessage<'static, K1>)>
Receive the server’s authenticator. This completes the protocol and returns the derived key.
§Arguments:
server_authenticator- the server’s authenticator
§Return:
either:
- Ok((
sk,message)):sk- the session key reached by theAuCPaceprotocolmessage- the message to send to the client
- Err(
Error::MutualAuthFail): an error if the authenticator we computed doesn’t match the client’s authenticator, compared in constant time.
Trait Implementations§
Source§impl<D, const K1: usize> Drop for AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> Drop for AuCPaceServerExpMutAuth<D, K1>
Auto Trait Implementations§
impl<D, const K1: usize> Freeze for AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> RefUnwindSafe for AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> Send for AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> Sync for AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> Unpin for AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> UnsafeUnpin for AuCPaceServerExpMutAuth<D, K1>
impl<D, const K1: usize> UnwindSafe for AuCPaceServerExpMutAuth<D, K1>
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