pub struct ClientHandshakeCtx<Config, Crypto: CryptoConfig, Rng> { /* private fields */ }Expand description
State machine context for yTLS CLient
Implementations§
Source§impl<Config, Crypto, Rng> ClientHandshakeCtx<Config, Crypto, Rng>
impl<Config, Crypto, Rng> ClientHandshakeCtx<Config, Crypto, Rng>
Sourcepub fn with_required(config: Config, crypto: Crypto, rng: Rng) -> Self
pub fn with_required(config: Config, crypto: Crypto, rng: Rng) -> Self
New yTLS server context with the given configuration
Trait Implementations§
Source§impl<Config, Crypto, Rng> CtxHandshakeProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
impl<Config, Crypto, Rng> CtxHandshakeProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
Source§fn spin_handshake<Li: TlsLeftIn, Lo: TlsLeftOut, Ks: SecretStore>(
&mut self,
li: &mut Li,
lo: &mut Lo,
ks: &mut Ks,
) -> Result<Option<HandshakeComplete>, Self::Error>
fn spin_handshake<Li: TlsLeftIn, Lo: TlsLeftOut, Ks: SecretStore>( &mut self, li: &mut Li, lo: &mut Lo, ks: &mut Ks, ) -> Result<Option<HandshakeComplete>, Self::Error>
Spin yTLS Client Handshake Context
type Error = CtxError
Source§impl<Config, Crypto, Rng> ServerCertificateProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
impl<Config, Crypto, Rng> ServerCertificateProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
fn handle_server_certificate(&mut self, _cert_data: &[u8], _ext_data: &[u8])
Source§impl<Config, Crypto, Rng> ServerCertificateVerifyProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
impl<Config, Crypto, Rng> ServerCertificateVerifyProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
Source§impl<Config, Crypto, Rng> ServerFinishedProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
impl<Config, Crypto, Rng> ServerFinishedProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
fn handle_server_finished(&mut self, _hash_finished: &[u8])
Source§impl<Config, Crypto, Rng> ServerWrappedRecordProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
impl<Config, Crypto, Rng> ServerWrappedRecordProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
type ServerCertificateHandler = ClientHandshakeCtx<Config, Crypto, Rng>
type ServerCertificateVerifyHandler = ClientHandshakeCtx<Config, Crypto, Rng>
type ServerFinishedHandler = ClientHandshakeCtx<Config, Crypto, Rng>
fn server_certificate(&mut self) -> &mut Self::ServerCertificateHandler
fn server_certificate_verify( &mut self, ) -> &mut Self::ServerCertificateVerifyHandler
fn server_finished( &mut self, ) -> &mut <Self as ServerWrappedRecordProcessor>::ServerFinishedHandler
Auto Trait Implementations§
impl<Config, Crypto, Rng> Freeze for ClientHandshakeCtx<Config, Crypto, Rng>where
Config: Freeze,
Crypto: Freeze,
Rng: Freeze,
<Crypto as CryptoConfig>::Hasher: Freeze,
<Crypto as CryptoConfig>::X25519: Freeze,
impl<Config, Crypto, Rng> RefUnwindSafe for ClientHandshakeCtx<Config, Crypto, Rng>where
Config: RefUnwindSafe,
Crypto: RefUnwindSafe,
Rng: RefUnwindSafe,
<Crypto as CryptoConfig>::Hasher: RefUnwindSafe,
<Crypto as CryptoConfig>::X25519: RefUnwindSafe,
impl<Config, Crypto, Rng> Send for ClientHandshakeCtx<Config, Crypto, Rng>where
Config: Send,
Crypto: Send,
Rng: Send,
<Crypto as CryptoConfig>::Hasher: Send,
<Crypto as CryptoConfig>::X25519: Send,
impl<Config, Crypto, Rng> Sync for ClientHandshakeCtx<Config, Crypto, Rng>where
Config: Sync,
Crypto: Sync,
Rng: Sync,
<Crypto as CryptoConfig>::Hasher: Sync,
<Crypto as CryptoConfig>::X25519: Sync,
impl<Config, Crypto, Rng> Unpin for ClientHandshakeCtx<Config, Crypto, Rng>where
Config: Unpin,
Crypto: Unpin,
Rng: Unpin,
<Crypto as CryptoConfig>::Hasher: Unpin,
<Crypto as CryptoConfig>::X25519: Unpin,
impl<Config, Crypto, Rng> UnwindSafe for ClientHandshakeCtx<Config, Crypto, Rng>where
Config: UnwindSafe,
Crypto: UnwindSafe,
Rng: UnwindSafe,
<Crypto as CryptoConfig>::Hasher: UnwindSafe,
<Crypto as CryptoConfig>::X25519: UnwindSafe,
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