AuCPaceClientRecvServerKey

Struct AuCPaceClientRecvServerKey 

Source
pub struct AuCPaceClientRecvServerKey<D, const K1: usize>
where D: Digest<OutputSize = U64> + Default,
{ /* private fields */ }
Expand description

Client waiting to receive the server’s public key

Implementations§

Source§

impl<D, const K1: usize> AuCPaceClientRecvServerKey<D, K1>
where D: Digest<OutputSize = U64> + Default,

Source

pub fn receive_server_pubkey( self, server_pubkey: RistrettoPoint, ) -> Result<(AuCPaceClientExpMutAuth<D, K1>, ClientMessage<'static, K1>)>

Receive the server’s public key This completes the CPace substep and moves the client on to explicit mutual authentication.

§Arguments:
  • server_pubkey - the server’s public key
§Return:

(next_step, message)

  • next_step: the client in the Explicit Mutual Authentication phase
  • message: the message to send to the server
Source

pub fn implicit_auth(self, server_pubkey: RistrettoPoint) -> Result<Output<D>>

Allow the user to exit the protocol early in the case of implicit authentication Note: this should only be used in special circumstances and the explicit mutual authentication stage should be used in all other cases

§Arguments:
  • server_pubkey - the server’s public key
§Return:

sk: the session key reached by the AuCPace protocol

Auto Trait Implementations§

§

impl<D, const K1: usize> Freeze for AuCPaceClientRecvServerKey<D, K1>

§

impl<D, const K1: usize> RefUnwindSafe for AuCPaceClientRecvServerKey<D, K1>

§

impl<D, const K1: usize> Send for AuCPaceClientRecvServerKey<D, K1>

§

impl<D, const K1: usize> Sync for AuCPaceClientRecvServerKey<D, K1>

§

impl<D, const K1: usize> Unpin for AuCPaceClientRecvServerKey<D, K1>

§

impl<D, const K1: usize> UnwindSafe for AuCPaceClientRecvServerKey<D, K1>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.