add hmac to REQ_GET_PUBKEY

This commit is contained in:
2026-07-24 15:15:58 +02:00
parent fa9348592e
commit 48811df6ed
4 changed files with 57 additions and 40 deletions

View File

@@ -34,7 +34,7 @@ const (
// [ ds.Sign(serverPrivKey, rest) - 2420 bytes ] [ ip - 16 bytes ] [ hpke.Seal(pubKey, multicastKey) - 1168 bytes ]
RESP_REGISTER
// (client -> server) requests peer's pubKey from the server for encapsulation
// [ ip - 16 bytes ]
// [ HMAC(authSecret, rest) - 32 bytes ] [ ip - 16 bytes ]
REQ_GET_PUBKEY
// (server -> client) provides requested pubKey
// [ ds.Sign(serverPrivKey, rest) - 2420 bytes ] [ ip - 16 bytes ] [ pubKey - 1216 bytes ]