HANDSHAKE (5000)¶
| Size | Type | Name | Desc | |
|---|---|---|---|---|
1 |
byte | security_options | Enabled security options | |
| If Blowfish | 8 |
byte[] | static_blowfish_key | Static Blowfish key |
| If SecurityBytes | 1 |
byte | crc_seed | Poly of the CRC table generation |
1 |
byte | count_seed | Initial seed for count byte | |
| If Handshake | 4 |
int | dh_generator | Diffie-Hellmann generator |
4 |
int | dh_prime | Diffie-Hellmann prime | |
4 |
int | dh_shared_secret | Diffie-Hellmann shared secret |
Security Options¶
| Type | Bit |
|---|---|
| None | 00000000 |
| Disabled | 00000001 |
| Blowfish | 00000010 |
| SecurityBytes | 00000100 |
| Handshake | 00001000 |
| HandshakeResponse | 00010000 |