abla/tls/pure/handshake

Generated from source.

Import with import "abla/tls/pure/handshake".

Source: abla/tls/pure/handshake/entry.ab

TLS_CLIENT_HELLO (val)

val TLS_CLIENT_HELLO

---- handshake message types and code points ----

TLS_SERVER_HELLO (val)

val TLS_SERVER_HELLO

Handshake type for the server's hello.

TLS_NEW_SESSION_TICKET (val)

val TLS_NEW_SESSION_TICKET

Handshake type for a session resumption ticket.

TLS_END_OF_EARLY_DATA (val)

val TLS_END_OF_EARLY_DATA

Handshake type marking the end of early data.

TLS_ENCRYPTED_EXTENSIONS (val)

val TLS_ENCRYPTED_EXTENSIONS

Handshake type for the server's encrypted extensions.

TLS_CERTIFICATE (val)

val TLS_CERTIFICATE

Handshake type carrying the sender's certificate chain.

TLS_CERTIFICATE_REQUEST (val)

val TLS_CERTIFICATE_REQUEST

Handshake type requesting authentication with a client certificate.

TLS_CERTIFICATE_VERIFY (val)

val TLS_CERTIFICATE_VERIFY

Handshake type carrying the signature that proves possession of the certificate key.

TLS_FINISHED (val)

val TLS_FINISHED

Handshake type carrying the transcript authenticator.

TLS_CERTIFICATE_STATUS (val)

val TLS_CERTIFICATE_STATUS

Handshake type of the TLS 1.2 message that carries a stapled OCSP response (RFC 6066 section 8), between Certificate and ServerKeyExchange.

TLS_KEY_UPDATE (val)

val TLS_KEY_UPDATE

Handshake type that advances a traffic key.

TLS_MESSAGE_HASH (val)

val TLS_MESSAGE_HASH

Synthetic handshake type carrying a transcript hash after HelloRetryRequest.

TLS_SUITE_AES_128_GCM_SHA256 (val)

val TLS_SUITE_AES_128_GCM_SHA256

TLS 1.3 suite for AES-128-GCM and SHA-256.

TLS_SUITE_AES_256_GCM_SHA384 (val)

val TLS_SUITE_AES_256_GCM_SHA384

TLS 1.3 suite for AES-256-GCM and SHA-384.

TLS_SUITE_CHACHA20_POLY1305_SHA256 (val)

val TLS_SUITE_CHACHA20_POLY1305_SHA256

TLS 1.3 suite for ChaCha20-Poly1305 and SHA-256.

TLS_GROUP_SECP256R1 (val)

val TLS_GROUP_SECP256R1

Named key exchange group for P-256.

TLS_GROUP_SECP384R1 (val)

val TLS_GROUP_SECP384R1

Named key exchange group for P-384.

TLS_GROUP_X25519 (val)

val TLS_GROUP_X25519

Named key exchange group for X25519.

TLS_GROUP_X25519_MLKEM768 (val)

val TLS_GROUP_X25519_MLKEM768

X25519MLKEM768 (draft-ietf-tls-ecdhe-mlkem section 4, IANA code point 0x11EC): ML-KEM-768 with X25519, TLS 1.3 only.

TLS_EXT_SERVER_NAME (val)

val TLS_EXT_SERVER_NAME

Extension type carrying the requested server name.

TLS_EXT_SUPPORTED_GROUPS (val)

val TLS_EXT_SUPPORTED_GROUPS

Extension type listing supported key exchange groups.

TLS_EXT_SIGNATURE_ALGORITHMS (val)

val TLS_EXT_SIGNATURE_ALGORITHMS

Extension type listing supported signature schemes.

TLS_EXT_ALPN (val)

val TLS_EXT_ALPN

Extension type for application-layer protocol negotiation.

TLS_EXT_PRE_SHARED_KEY (val)

val TLS_EXT_PRE_SHARED_KEY

Extension type carrying PSK identities and binders or the server's selected identity.

TLS_EXT_PSK_KEY_EXCHANGE_MODES (val)

val TLS_EXT_PSK_KEY_EXCHANGE_MODES

Extension type listing the supported PSK key exchange modes.

TLS_PSK_DHE_KE (val)

val TLS_PSK_DHE_KE

psk_dhe_ke (RFC 8446 section 4.2.9): the only PSK key exchange mode this stack uses.

TLS_EXT_SUPPORTED_VERSIONS (val)

val TLS_EXT_SUPPORTED_VERSIONS

Extension type carrying the offered or selected TLS versions.

val TLS_EXT_COOKIE

Extension type carrying the server's retry cookie.

TLS_EXT_KEY_SHARE (val)

val TLS_EXT_KEY_SHARE

Extension type carrying the key exchange group and public share.

TLS_SIG_ECDSA_SECP256R1_SHA256 (val)

val TLS_SIG_ECDSA_SECP256R1_SHA256

TLS signature scheme for ECDSA with P-256 and SHA-256.

TLS_SIG_ECDSA_SECP384R1_SHA384 (val)

val TLS_SIG_ECDSA_SECP384R1_SHA384

TLS signature scheme for ECDSA with P-384 and SHA-384.

TLS_SIG_RSA_PSS_RSAE_SHA256 (val)

val TLS_SIG_RSA_PSS_RSAE_SHA256

TLS signature scheme for RSA-PSS with a conventional RSA key and SHA-256.

TLS_SIG_RSA_PSS_RSAE_SHA384 (val)

val TLS_SIG_RSA_PSS_RSAE_SHA384

TLS signature scheme for RSA-PSS with a conventional RSA key and SHA-384.

TLS_SIG_RSA_PSS_RSAE_SHA512 (val)

val TLS_SIG_RSA_PSS_RSAE_SHA512

TLS signature scheme for RSA-PSS with a conventional RSA key and SHA-512.

TLS_SIG_ED25519 (val)

val TLS_SIG_ED25519

TLS signature scheme for Ed25519.

TLS_SIGNATURE_TLS12 (val)

val TLS_SIGNATURE_TLS12

Added to the scheme a verifier is given when the signature is a TLS 1.2 one (a ServerKeyExchange, or a client's CertificateVerify in 1.2): the scheme alone does not say which rules apply. An ECDSA scheme fixes the curve in 1.3 (RFC 8446 section 4.2.3) and names only the hash in 1.2 (RFC 5246 section 7.4.1.4.1). A verifier takes it off with tlsSignatureScheme.

tlsSignatureScheme (fun)

fun tlsSignatureScheme(scheme: int): int

Returns the 16-bit wire identifier from a possibly tagged signature scheme.

tlsSignatureIsTls12 (fun)

fun tlsSignatureIsTls12(scheme: int): bool

Returns true when the verifier's signature scheme carries the TLS 1.2 marker.

tlsU8 (fun)

fun tlsU8(value: int): string

---- writing ----

tlsU16 (fun)

fun tlsU16(value: int): string

Encodes the low 16 bits in two big-endian bytes.

tlsU24 (fun)

fun tlsU24(value: int): string

Encodes the low 24 bits in three big-endian bytes.

tlsU32 (fun)

fun tlsU32(value: int): string

Encodes the low 32 bits in four big-endian bytes.

tlsVec8 (fun)

fun tlsVec8(data: string): string

A vector with a one- or two-byte length prefix. A longer one would write a wrong length: that is a bug of the caller (a name or a list that was not validated), and the encoder stops the program rather than put it on the wire.

tlsVec16 (fun)

fun tlsVec16(data: string): string

Returns the two-byte length followed by the data, panicking if the data exceeds 65535 bytes.

tlsServerNameValid (fun)

fun tlsServerNameValid(name: string): bool

A server name (RFC 6066 section 3): 1 to 255 bytes of letters, digits, '.', '-' and '_'. Anything else (a NUL byte, '/', spaces, a list of names) is not a host name.

tlsAlpnNamesValid (fun)

fun tlsAlpnNamesValid(names: array<string>): bool

ALPN protocol names (RFC 7301): each 1 to 255 bytes, the list at most 65535 bytes in all.

tlsVec24 (fun)

fun tlsVec24(data: string): string

Returns the three-byte length followed by the data, which must fit in 24 length bits.

tlsHandshakeMessage (fun)

fun tlsHandshakeMessage(type: int, body: string): string

A handshake message: type, three-byte length, body.

tlsExtension (fun)

fun tlsExtension(type: int, data: string): string

An extension: type, two-byte length, data.

TlsReader (class)

class TlsReader(val data: string, var position: int, var ok: bool)

---- reading ----

tlsReader (fun)

fun tlsReader(data: string): TlsReader

Returns a bounds-checked reader positioned at the beginning of the supplied bytes.

TlsReader.remaining (extension fun)

fun TlsReader.remaining(): int

Returns the number of bytes from the cursor to the end of the input.

TlsReader.u8 (extension fun)

fun TlsReader.u8(): int

Consumes one unsigned byte, or marks the reader failed and returns zero when no byte is available.

TlsReader.u16 (extension fun)

fun TlsReader.u16(): int

Consumes a two-byte big-endian integer, marking the reader failed if the input ends early.

TlsReader.u24 (extension fun)

fun TlsReader.u24(): int

Consumes a three-byte big-endian integer, marking the reader failed if the input ends early.

TlsReader.u32 (extension fun)

fun TlsReader.u32(): int

Consumes a four-byte big-endian integer, marking the reader failed if the input ends early.

TlsReader.bytes (extension fun)

fun TlsReader.bytes(count: int): string

Returns and consumes the next bytes, or marks the reader failed and returns empty text for an invalid or unavailable count.

TlsReader.vec8 (extension fun)

fun TlsReader.vec8(): string

Returns and consumes a one-byte-length vector, marking the reader failed on truncation.

TlsReader.vec16 (extension fun)

fun TlsReader.vec16(): string

Returns and consumes a two-byte-length vector, marking the reader failed on truncation.

TlsReader.vec24 (extension fun)

fun TlsReader.vec24(): string

Returns and consumes a three-byte-length vector, marking the reader failed on truncation.

TlsReader.finished (extension fun)

fun TlsReader.finished(): bool

True when the reader is intact and everything was consumed.

TlsMessageHeader (class)

class TlsMessageHeader(val ok: bool, val complete: bool, val type: int, val bodyLength: int, val total: int)

The header of the handshake message at offset of a buffer of handshake bytes. complete is false while fewer bytes than header and body are there (ok is still true); total is the whole message's size.

tlsParseMessageHeader (fun)

fun tlsParseMessageHeader(buffer: string, offset: int): TlsMessageHeader

Returns the handshake type and lengths at a valid offset, with the completion flag clear until the entire message is buffered.

TlsExtension (class)

class TlsExtension(val type: int, val data: string)

---- extensions ----

TlsExtensions (class)

class TlsExtensions(val ok: bool, val list: array<TlsExtension>, val error: string)

The extensions of a two-byte-length-prefixed list; ok false on a truncated list or a repeated type.

tlsParseExtensions (fun)

fun tlsParseExtensions(var reader: TlsReader): TlsExtensions

Returns extensions from one length-prefixed block or a failure result for truncation or duplicate types.

tlsFindExtension (fun)

fun tlsFindExtension(list: array<TlsExtension>, type: int): TlsExtension?

The data of extension type, and whether it is there.

TlsKeyShare (class)

class TlsKeyShare(val group: int, val publicKey: string)

One offered key share: the group and the client's public value.

tlsIsDnsName (fun)

fun tlsIsDnsName(host: string): bool

A DNS host name (not an address literal), for server_name (RFC 6066: no literal addresses).

tlsBuildClientHello (fun)

fun tlsBuildClientHello(random: string, sessionId: string, suites: array<int>, host: string,
    groups: array<int>, shares: array<TlsKeyShare>, signatureAlgorithms: array<int>,
    alpn: array<string>, cookie: string, tls12Suites: array<int> = [], fallbackScsv: bool = false,
    pskOffers: array<TlsPskIdentity> = [], pskBinderLength: int = 0, ticketsWanted: bool = false, statusRequest: bool = false): string

A ClientHello message (with its 4-byte header). sessionId is the 32 random bytes of middlebox compatibility mode (RFC 8446 appendix D.4) or empty; cookie repeats a HelloRetryRequest's cookie.

tlsFirstUnlisted (fun)

fun tlsFirstUnlisted(list: array<TlsExtension>, allowed: array<int>): int

The type of the first extension of list that is not among allowed (the ones the peer may send here), or -1.

tlsHelloRetryRandom (fun)

fun tlsHelloRetryRandom(): string

The special random of a HelloRetryRequest (RFC 8446 section 4.1.3, SHA-256 of "HelloRetryRequest").

TlsServerHello (class)

class TlsServerHello(val ok: bool, val error: string, val random: string, val sessionId: string,
    val cipherSuite: int, val retryRequest: bool, val selectedVersion: int, val shareGroup: int,
    val shareKey: string, val cookie: string,
    /** The first extension that a ServerHello (supported_versions, key_share) or a HelloRetryRequest (and cookie) may
     *  not carry (RFC 8446 section 4.2), or -1. */
    val unlisted: int = -1,
    /** The pre_shared_key extension of a ServerHello: the index of the identity the server selected (RFC 8446 section 4.2.11), or -1. */
    val pskSelected: int = -1)

Holds the parsed ServerHello or retry parameters, including a validation flag and error text.

tlsParseServerHello (fun)

fun tlsParseServerHello(body: string): TlsServerHello

Parses a ServerHello or HelloRetryRequest body (without the 4-byte header). In a HelloRetryRequest the key_share extension holds only the selected group (shareKey empty).

TlsEncryptedExtensions (class)

class TlsEncryptedExtensions(val ok: bool, val error: string, val alpn: string, val extensions: array<TlsExtension>)

EncryptedExtensions: the negotiated ALPN protocol ("" if none) and whether every extension parsed.

tlsParseEncryptedExtensions (fun)

fun tlsParseEncryptedExtensions(body: string): TlsEncryptedExtensions

Returns the parsed encrypted extensions or an error result if their framing or values are malformed.

TlsCertificateMessage (class)

class TlsCertificateMessage(val ok: bool, val error: string, val context: string, val chain: array<string>,
    /** The type of the first extension in a certificate entry (status_request, signed_certificate_timestamp, ...), or
     *  -1: none was asked for, so one is unsolicited (RFC 8446 section 4.4.2). */
    val entryExtension: int = -1,
    /** The OCSP response stapled to each entry (the status_request extension of RFC 8446 section 4.4.2.1, accepted only when `statusAllowed`), "" for an entry without one. */
    val statuses: array<string> = [])

A Certificate message's chain, end entity first, as DER strings. context is the request context (empty from a server).

tlsParseCertificate (fun)

fun tlsParseCertificate(body: string, statusAllowed: bool = false): TlsCertificateMessage

Returns the certificate chain and request context or a failure result for malformed certificate framing. With statusAllowed (the client offered status_request) an entry's status_request extension is read as the OCSP response stapled to it; any other extension of an entry is unsolicited (entryExtension).

tlsParseCertificateStatus (fun)

fun tlsParseCertificateStatus(body: string): string

The OCSP response in a CertificateStatus (RFC 6066 section 8: status_type ocsp (1) and an opaque response of 1 to 2^24-1 bytes, nothing after it), or "" when the body is not one: the body of the TLS 1.2 handshake message of type 22 and of a TLS 1.3 certificate entry's status_request extension.

TlsCertificateVerify (class)

class TlsCertificateVerify(val ok: bool, val scheme: int, val signature: string)

CertificateVerify: the signature scheme and the signature.

tlsParseCertificateVerify (fun)

fun tlsParseCertificateVerify(body: string): TlsCertificateVerify

Returns the signature scheme and bytes with a false success flag if the body is truncated or has extra bytes.

tlsCertificateVerifyContent (fun)

fun tlsCertificateVerifyContent(server: bool, transcriptHash: string): string

The content a CertificateVerify signs: 64 spaces, the context string, a zero byte, the transcript hash (RFC 8446 section 4.4.3). server selects the server's context string.

TlsNewSessionTicket (class)

class TlsNewSessionTicket(val ok: bool, val lifetime: int, val ageAdd: int, val nonce: string, val ticket: string)

A NewSessionTicket (parsed only to validate it).

tlsParseNewSessionTicket (fun)

fun tlsParseNewSessionTicket(body: string): TlsNewSessionTicket

Returns the parsed ticket and resumption parameters or a failure result if the body or extensions are invalid.

tlsPatchClientHello (fun)

fun tlsPatchClientHello(first: string, share: TlsKeyShare, cookie: string): string

The ClientHello a HelloRetryRequest asks for (RFC 8446 section 4.1.2): the first one with its key_share replaced by share (a share of group 0 leaves it as it was: a cookie alone) and, when the server sent one, its cookie added at the end of the extensions. Everything else stays byte for byte, as the transcript rules require. first is the whole message (header included); an empty string comes back when it does not parse.

tlsClientHelloGroups (fun)

fun tlsClientHelloGroups(hello: string): array<int>

The groups a ClientHello message lists in supported_groups.

tlsClientHelloExtensionTypes (fun)

fun tlsClientHelloExtensionTypes(hello: string): array<int>

The types of the extensions a ClientHello message carries.

TlsCertificateRequest (class)

class TlsCertificateRequest(val ok: bool, val context: string, val signatureAlgorithms: array<int>)

A CertificateRequest: the request context to echo and the signature schemes the server accepts.

tlsParseCertificateRequest (fun)

fun tlsParseCertificateRequest(body: string): TlsCertificateRequest

Returns the request context and signature schemes or a failure result for a malformed request.

tlsBuildCertificate (fun)

fun tlsBuildCertificate(context: string, chain: array<string>): string

A Certificate message: the request context (empty from a server) and the chain, end entity first, each certificate without extensions.

tlsBuildCertificateVerify (fun)

fun tlsBuildCertificateVerify(scheme: int, signature: string): string

A CertificateVerify message from the scheme and the signature.

TlsClientHello (class)

class TlsClientHello(val ok: bool, val error: string, val random: string, val sessionId: string,
    val suites: array<int>, val versions: array<int>, val groups: array<int>, val shares: array<TlsKeyShare>,
    val schemes: array<int>, val alpn: array<string>, val serverName: string, val cookie: string,
    /** The legacy_version field, whether extended_master_secret was offered, and whether renegotiation_info or
     *  TLS_EMPTY_RENEGOTIATION_INFO_SCSV (0x00FF) was (RFC 5746). */
    val legacyVersion: int = 0, val extendedMasterSecret: bool = false, val secureRenegotiation: bool = false,
    /** Whether the key_share extension was present at all (an empty list is a request for a HelloRetryRequest). */
    val hasKeyShare: bool = false, val compression: string = "\x00",
    /** psk_key_exchange_modes, the pre_shared_key identities and binders (RFC 8446 section 4.2.11), where the binders list starts in the body (the
     *  partial ClientHello of section 4.2.11.2 is the message without it), and whether the extension was not the last one (an error). */
    val pskModes: array<int> = [], val pskIdentities: array<TlsPskIdentity> = [], val pskBinders: array<string> = [],
    val pskBindersStart: int = -1, val pskNotLast: bool = false,
    /** The identities and binders lists differ in length (RFC 8446 section 4.2.11: illegal_parameter). */
    val pskMismatch: bool = false,
    /** Whether the (empty) early_data extension was offered: the client may send 0-RTT data that a server not accepting it skips (RFC 8446 section 4.2.10). */
    val earlyData: bool = false)

What a ClientHello offers (RFC 8446 section 4.1.2): versions from supported_versions (empty when the extension is absent), the key shares in the order sent, the host name, ALPN protocols.

TlsPskIdentity (class)

class TlsPskIdentity(val identity: string, val obfuscatedAge: int)

One identity of a pre_shared_key offer: the ticket and the client's obfuscated ticket age.

tlsParseClientHello (fun)

fun tlsParseClientHello(body: string): TlsClientHello

Parses a ClientHello body (without its 4-byte header).

tlsBuildServerHello (fun)

fun tlsBuildServerHello(random: string, sessionId: string, suite: int, share: TlsKeyShare, pskSelected: int = -1): string

A ServerHello message: the echo of the session id, the suite, and the server's key share.

tlsBuildHelloRetryRequest (fun)

fun tlsBuildHelloRetryRequest(sessionId: string, suite: int, group: int, cookie: string): string

A HelloRetryRequest: the special random, the suite, the group to retry with (and a cookie, if any).

tlsBuildEncryptedExtensions (fun)

fun tlsBuildEncryptedExtensions(alpn: string): string

EncryptedExtensions carrying the chosen ALPN protocol, if any.

tlsBuildCertificateRequest (fun)

fun tlsBuildCertificateRequest(context: string, schemes: array<int>): string

A CertificateRequest with the schemes the server accepts.

tlsSchemeIsPkcs1 (fun)

fun tlsSchemeIsPkcs1(scheme: int): bool

The RSA PKCS#1 v1.5 signature schemes: valid for certificate signatures and in TLS 1.2, never in a TLS 1.3 CertificateVerify (RFC 8446 section 4.2.3).

tlsMessageLimit (fun)

fun tlsMessageLimit(type: int): int

The most body a handshake message may have, by type, checked as soon as its header is read (before the body is buffered): hellos 2^17, Certificate 2^16, everything else 2^14. A peer that is not authenticated yet cannot make the buffer grow beyond that.

TlsHandshakeBuffer (class)

class TlsHandshakeBuffer(var parts: array<string>, var size: int)

The handshake bytes received and not yet taken as messages, kept as the pieces they came in: a message split over many records is joined once, when it is whole, not once per record (a chain of one-byte records would otherwise cost quadratic copying).

TlsHandshakeBuffer.add (extension fun)

fun TlsHandshakeBuffer.add(data: string): void

Appends nonempty handshake bytes without joining the previously buffered pieces.

TlsHandshakeBuffer.empty (extension fun)

fun TlsHandshakeBuffer.empty(): bool

Returns true if no handshake bytes remain buffered.

TlsHandshakeBuffer.header (extension fun)

fun TlsHandshakeBuffer.header(): TlsMessageHeader

The header of the first message, read from the first four bytes without joining the pieces; complete says whether the whole message is buffered. Fewer than four bytes: ok true, complete false, nothing known.

TlsHandshakeBuffer.take (extension fun)

fun TlsHandshakeBuffer.take(total: int): string

The first total bytes (a whole message, as header() said), joining the pieces; what follows stays buffered.

TLS_VERDICT_DECODE_ERROR (val)

val TLS_VERDICT_DECODE_ERROR

The answer of a certificate verifier: the alert to send when it refuses (RFC 8446 section 6.2) and the reason.

TLS_VERDICT_BAD_CERTIFICATE (val)

val TLS_VERDICT_BAD_CERTIFICATE

Alert for a bad certificate.

TLS_VERDICT_UNSUPPORTED_CERTIFICATE (val)

val TLS_VERDICT_UNSUPPORTED_CERTIFICATE

Alert for a certificate type the verifier cannot handle.

TLS_VERDICT_CERTIFICATE_EXPIRED (val)

val TLS_VERDICT_CERTIFICATE_EXPIRED

Alert for a certificate outside its permitted lifetime.

TLS_VERDICT_CERTIFICATE_REVOKED (val)

val TLS_VERDICT_CERTIFICATE_REVOKED

Alert for a certificate that is revoked (an OCSP staple says so).

TLS_VERDICT_BAD_STATUS_RESPONSE (val)

val TLS_VERDICT_BAD_STATUS_RESPONSE

Alert for an OCSP staple that is not acceptable (RFC 6066 section 8: bad_certificate_status_response).

TLS_VERDICT_UNKNOWN_CA (val)

val TLS_VERDICT_UNKNOWN_CA

Alert for a chain whose certificate authority is untrusted.

TlsVerdict (class)

class TlsVerdict(val alert: int, val text: string)

text is "" when the certificate is accepted; otherwise the reason, and alert the alert to send.

tlsAccepted (fun)

fun tlsAccepted(): TlsVerdict

Returns a certificate validation verdict without an alert or error.

tlsRefused (fun)

fun tlsRefused(alert: int, text: string): TlsVerdict

Returns a failed certificate verdict with the alert and a nonempty reason supplied by the caller.

TlsVerdict.accepted (extension fun)

fun TlsVerdict.accepted(): bool

Returns true if the certificate verdict is an acceptance: no alert and no failure text. A refusal that carries an alert but an empty reason (a verifier that builds TlsVerdict(alert, "") by hand) is a refusal, not an acceptance.

tlsSchemeIsEcKey (fun)

fun tlsSchemeIsEcKey(scheme: int): bool

True for the signature schemes of an ECDSA or Ed25519 key (the ECDHE_ECDSA suites of TLS 1.2), false for RSA's.

tlsBindersStart (fun)

fun tlsBindersStart(message: string): int

Where the binders list starts in the ClientHello message (header included): the partial ClientHello is message up to here. -1 if the message offers no pre_shared_key or does not parse.

tlsReplaceBinders (fun)

fun tlsReplaceBinders(message: string, binders: array<string>): string

message with its binders replaced by binders (the same sizes: the message keeps its length).

tlsDropPsk (fun)

fun tlsDropPsk(message: string): string

message (a ClientHello) without its pre_shared_key extension (the psk_key_exchange_modes stay, so the server may still send tickets).

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.