TlsConstants class
Protocol-wide constants for TLS 1.3 (RFC 8446).
These values are used when building or parsing TLS handshake messages, ensuring that wire-format sizes and version fields match the specification.
See also:
- TlsHandshakeType — message types that rely on these constants.
- RFC 8446 Section 4.1 — protocol version and random structure.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- minRecordSize → const int
- Minimum TLS record size.
- randomSize → const int
- Random size in bytes.
- sessionIdSize → const int
- Session ID size in bytes (legacy, always 0 for TLS 1.3).
- tls12Version → const int
- TLS 1.2 version (0x0303) for compatibility.
- tls13Version → const int
- TLS 1.3 version (0x0304).