ServerHello constructor

ServerHello({
  1. required int legacyVersion,
  2. required Uint8List random,
  3. required Uint8List sessionId,
  4. required int cipherSuite,
  5. required int compressionMethod,
  6. required Map<int, Uint8List> extensionsRaw,
  7. required int msgType,
  8. ParsedKeyShare? keyShareEntry,
  9. int? selectedVersion,
  10. Uint8List? rawBytes,
})

Implementation

ServerHello({
  required this.legacyVersion,
  required this.random,
  required this.sessionId,
  required this.cipherSuite,
  required this.compressionMethod,
  required this.extensionsRaw,
  required int msgType, // ALWAYS 0x02
  this.keyShareEntry,
  this.selectedVersion,
  this.rawBytes,
}) : super(msgType);