ddn.net.tls.tls12
TLS 1.2 handshake engine (RFC 5246).
Implements TLS 1.2 client and server handshakes as resumable state machines with ECDHE key exchange and AES-GCM cipher suites.
Types 4
TLS 1.2 client handshake phases.
Each phase represents a discrete step in the client handshake state machine. The handshake progresses forward through these phases.
TLS 1.2 client handshake engine.
Drives the client side of a TLS 1.2 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.
TlsProgress handshake()Performs or continues the TLS 1.2 client handshake.this(RecordLayer recordLayer, string serverName,
TlsVerifyMode verifyMode, TlsVerifyCallback verifyCallback,
string[] alpnProtocols, NativeTlsTrustStore trustStore = null)Constructs a TLS 1.2 client handshake engine.EcdhP256StoreHeap storage for EcdhP256 since it's a struct.TLS 1.2 server handshake phases.
Each phase represents a discrete step in the server handshake state machine. The handshake progresses forward through these phases.
TLS 1.2 server handshake engine.
Drives the server side of a TLS 1.2 handshake over a record layer using a resumable state machine. After successful handshake, provides the AEAD ciphers and negotiated parameters for application data exchange.
Call handshake() repeatedly until it returns TlsProgress.DONE.
TlsProgress handshake()Performs or continues the TLS 1.2 server handshake.this(RecordLayer recordLayer, TlsVerifyMode verifyMode,
TlsVerifyCallback verifyCallback, string[] alpnProtocols,
ubyte[][] certChainDer, string certChainPem, string privateKeyPem)Constructs a TLS 1.2 server handshake engine.Functions 1
bool verifyRsaPkcs1Signature(RSAPublicKey key, SignatureScheme sigScheme,
const(ubyte)[] message, const(ubyte)[] signature)Verifies an RSA PKCS#1 v1.5 signature for TLS 1.2 `ServerKeyExchange`.