ClientHandshakeCtx

Struct ClientHandshakeCtx 

Source
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>
where Config: TlsClientCtxConfig, Crypto: CryptoConfig, Rng: CryptoRng,

Source

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>
where Config: TlsClientCtxConfig, Crypto: CryptoConfig, Rng: CryptoRng,

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>

Spin yTLS Client Handshake Context

Source§

type Error = CtxError

Source§

impl<Config, Crypto, Rng> ServerCertificateProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
where Config: TlsClientCtxConfig, Crypto: CryptoConfig, Rng: CryptoRng,

Source§

fn handle_server_certificate(&mut self, _cert_data: &[u8], _ext_data: &[u8])

Source§

impl<Config, Crypto, Rng> ServerCertificateVerifyProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
where Config: TlsClientCtxConfig, Crypto: CryptoConfig, Rng: CryptoRng,

Source§

fn handle_server_certificate_verify( &mut self, _algorithm: [u8; 2], _signature: &[u8], )

Source§

impl<Config, Crypto, Rng> ServerFinishedProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
where Config: TlsClientCtxConfig, Crypto: CryptoConfig, Rng: CryptoRng,

Source§

fn handle_server_finished(&mut self, _hash_finished: &[u8])

Source§

impl<Config, Crypto, Rng> ServerWrappedRecordProcessor for ClientHandshakeCtx<Config, Crypto, Rng>
where Config: TlsClientCtxConfig, Crypto: CryptoConfig, Rng: CryptoRng,

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> 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, 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.