pub struct AuCPaceClientCPaceSubstep<D, const K1: usize>{ /* private fields */ }Expand description
Client in the CPace substep
Implementations§
Source§impl<D, const K1: usize> AuCPaceClientCPaceSubstep<D, K1>
impl<D, const K1: usize> AuCPaceClientCPaceSubstep<D, K1>
Sourcepub fn generate_public_key<CI, CSPRNG>(
self,
channel_identifier: CI,
rng: &mut CSPRNG,
) -> (AuCPaceClientRecvServerKey<D, K1>, ClientMessage<'static, K1>)
pub fn generate_public_key<CI, CSPRNG>( self, channel_identifier: CI, rng: &mut CSPRNG, ) -> (AuCPaceClientRecvServerKey<D, K1>, ClientMessage<'static, K1>)
Generate a public key moving the protocol onto the second half of the CPace substep - Receive Server Pubkey
§Arguments:
channel_identifier-CIfrom the protocol definition, in the context of TCP/IP this is usually some combination of the server and client’s IP address and TCP port numbers. It’s purpose is to prevent relay attacks.rng- the CSPRNG used when generating the public/private keypair
§Return:
Auto Trait Implementations§
impl<D, const K1: usize> Freeze for AuCPaceClientCPaceSubstep<D, K1>
impl<D, const K1: usize> RefUnwindSafe for AuCPaceClientCPaceSubstep<D, K1>
impl<D, const K1: usize> Send for AuCPaceClientCPaceSubstep<D, K1>
impl<D, const K1: usize> Sync for AuCPaceClientCPaceSubstep<D, K1>
impl<D, const K1: usize> Unpin for AuCPaceClientCPaceSubstep<D, K1>
impl<D, const K1: usize> UnwindSafe for AuCPaceClientCPaceSubstep<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