ddn.net.tls.tls13client
TLS 1.3 client handshake (RFC 8446).
Implements the full TLS 1.3 client handshake as a resumable state machine. Each call to handshake() progresses through one or more phases until I/O is needed or the handshake completes.
Phases:
- Send ClientHello (key_share + supported_versions + supported_groups + signature_algorithms)
- Receive ServerHello (select cipher suite, key share group, compute shared secret)
- Receive EncryptedExtensions, Certificate, CertificateVerify, Finished
- Send client Finished
- Switch to application data keys
Types 2
TLS 1.3 client handshake phases.
Each phase represents a discrete step in the handshake state machine. The handshake progresses forward through these phases.
TLS 1.3 client handshake engine.
Drives the client side of a TLS 1.3 handshake over a record layer using a resumable state machine. After successful handshake, provides the AEAD cipher and negotiated parameters for application data exchange.
Call handshake() repeatedly until it returns TlsProgress.DONE. On NEED_READ, wait for the transport to become readable before calling again. On NEED_WRITE, wait for writability.
TlsProgress handshake()Performs or continues the TLS 1.3 client handshake.this(RecordLayer recordLayer, string serverName,
TlsVerifyMode verifyMode, TlsVerifyCallback verifyCallback,
string[] alpnProtocols, NativeTlsTrustStore trustStore = null)Constructs a TLS 1.3 client handshake engine.EcdhP256StoreHeap storage for EcdhP256 since it's a struct.