Add admin port support with other major refactorations
This commit is contained in:
@@ -15,6 +15,17 @@ We use **Blake2b** (64-byte digest) to derive two 32-byte session keys.
|
||||
### Handshake Nonces
|
||||
The server provides a 24-byte nonce in the `ServerAuthenticationRequest`. This nonce is used for the AEAD challenge during the auth response and for the initial stream encryption setup.
|
||||
|
||||
## Admin Network (TCP 3977)
|
||||
The Admin Network allows external applications to monitor and control the server. It supports both unsecured and secure (X25519 PAKE) authentication.
|
||||
|
||||
### Secure Authentication
|
||||
Similar to the Game Port, the Admin Network uses X25519 PAKE for secure authentication.
|
||||
- **Packet:** `AdminJoinSecure` starts the handshake.
|
||||
- **Encryption:** Once enabled via `ServerEnableEncryption`, all subsequent traffic is encrypted using XChaCha20-Poly1305.
|
||||
|
||||
### Update Frequencies
|
||||
Admins can subscribe to various updates (Date, Client Info, Company Info, etc.) at different frequencies (Poll, Daily, Weekly, Monthly, Quarterly, Annually, Automatic).
|
||||
|
||||
## Stream Encryption (AEAD)
|
||||
Once `ServerEnableEncryption` is received, all subsequent packets use **XChaCha20-Poly1305** (Authenticated Encryption with Associated Data).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user