v2fly-github-io
v2fly-github-io copied to clipboard
Encryption method options inconsistent with implementation of v2ray-core
Options listed in vmess protocols page are
Encryption method: Specify the encryption method of the data part, the optional values are: 0x00: AES-128-CFB; 0x01: No encryption; 0x02: AES-128-GCM; 0x03: ChaCha20-Poly1305;
but values in common/protocol/headers.pb.go referenced in proxy/vmess/encoding/server.go are
// Enum value maps for SecurityType.
var (
SecurityType_name = map[int32]string{
0: "UNKNOWN",
1: "LEGACY",
2: "AUTO",
3: "AES128_GCM",
4: "CHACHA20_POLY1305",
5: "NONE",
6: "ZERO",
}
SecurityType_value = map[string]int32{
"UNKNOWN": 0,
"LEGACY": 1,
"AUTO": 2,
"AES128_GCM": 3,
"CHACHA20_POLY1305": 4,
"NONE": 5,
"ZERO": 6,
}
)