encrypt traffic with pre-shared key

This commit is contained in:
2026-07-22 11:05:00 +02:00
parent e58731bd34
commit c09c5c4fd0
6 changed files with 110 additions and 26 deletions

View File

@@ -6,9 +6,13 @@ const PROTO_VERSION uint16 = 1
const (
unused uint16 = iota
// - empty -
REQ_REGISTER
// [ ip - 16 bytes ]
RESP_REGISTER
// [ encrypted pkt ]
REQ_DATA
// [ encrypted pkt ]
RESP_DATA
)