mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 18:53:41 +00:00
Clean up
This commit is contained in:
+5
-10
@@ -953,16 +953,11 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
* +----+------+------+----------+----------+----------+
|
||||
*
|
||||
* shadowsocks UDP Request (before encrypted)
|
||||
* +------+----------+----------+----------+-------------+
|
||||
* | ATYP | DST.ADDR | DST.PORT | DATA | HMAC-SHA1 |
|
||||
* +------+----------+----------+----------+-------------+
|
||||
* | 1 | Variable | 2 | Variable | 10 |
|
||||
* +------+----------+----------+----------+-------------+
|
||||
*
|
||||
* If ATYP & ONETIMEAUTH_FLAG(0x10) != 0, Authentication (HMAC-SHA1) is enabled.
|
||||
*
|
||||
* The key of HMAC-SHA1 is (IV + KEY) and the input is the whole packet.
|
||||
* The output of HMAC-SHA is truncated to 10 bytes (leftmost bits).
|
||||
* +------+----------+----------+----------+
|
||||
* | ATYP | DST.ADDR | DST.PORT | DATA |
|
||||
* +------+----------+----------+----------+
|
||||
* | 1 | Variable | 2 | Variable |
|
||||
* +------+----------+----------+----------+
|
||||
*
|
||||
* shadowsocks UDP Response (before encrypted)
|
||||
* +------+----------+----------+----------+
|
||||
|
||||
Reference in New Issue
Block a user