mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-12-03 03:32:20 +00:00
1a276514fa02a93109cc4625debb06def1c3805b
One sealed datagram per message and no handshake: an RFC 9180 HPKE single shot to the server's signing key converted to X25519, signed by the device key the server has on record, answered by a welcome sealed under an exported key and a fresh nonce (RFC 9458) that hands over a session key the server re-derives from a process secret and the key id. Data carries the key id and a packet number under per-direction subkeys, with a replay window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8
Languages
Rust
100%