|
|
|
@ -25,11 +25,12 @@ const (
|
|
|
|
|
type CipherType int32 |
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
CipherType_UNKNOWN CipherType = 0 |
|
|
|
|
CipherType_AES_128_GCM CipherType = 5 |
|
|
|
|
CipherType_AES_256_GCM CipherType = 6 |
|
|
|
|
CipherType_CHACHA20_POLY1305 CipherType = 7 |
|
|
|
|
CipherType_NONE CipherType = 8 |
|
|
|
|
CipherType_UNKNOWN CipherType = 0 |
|
|
|
|
CipherType_AES_128_GCM CipherType = 5 |
|
|
|
|
CipherType_AES_256_GCM CipherType = 6 |
|
|
|
|
CipherType_CHACHA20_POLY1305 CipherType = 7 |
|
|
|
|
CipherType_XCHACHA20_POLY1305 CipherType = 8 |
|
|
|
|
CipherType_NONE CipherType = 9 |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// Enum value maps for CipherType.
|
|
|
|
@ -39,14 +40,16 @@ var (
|
|
|
|
|
5: "AES_128_GCM", |
|
|
|
|
6: "AES_256_GCM", |
|
|
|
|
7: "CHACHA20_POLY1305", |
|
|
|
|
8: "NONE", |
|
|
|
|
8: "XCHACHA20_POLY1305", |
|
|
|
|
9: "NONE", |
|
|
|
|
} |
|
|
|
|
CipherType_value = map[string]int32{ |
|
|
|
|
"UNKNOWN": 0, |
|
|
|
|
"AES_128_GCM": 5, |
|
|
|
|
"AES_256_GCM": 6, |
|
|
|
|
"CHACHA20_POLY1305": 7, |
|
|
|
|
"NONE": 8, |
|
|
|
|
"UNKNOWN": 0, |
|
|
|
|
"AES_128_GCM": 5, |
|
|
|
|
"AES_256_GCM": 6, |
|
|
|
|
"CHACHA20_POLY1305": 7, |
|
|
|
|
"XCHACHA20_POLY1305": 8, |
|
|
|
|
"NONE": 9, |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -274,20 +277,22 @@ var file_proxy_shadowsocks_config_proto_rawDesc = []byte{
|
|
|
|
|
0x3c, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, |
|
|
|
|
0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, |
|
|
|
|
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, |
|
|
|
|
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2a, 0x5c, 0x0a, |
|
|
|
|
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2a, 0x74, 0x0a, |
|
|
|
|
0x0a, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, |
|
|
|
|
0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, |
|
|
|
|
0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, |
|
|
|
|
0x5f, 0x32, 0x35, 0x36, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, |
|
|
|
|
0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10, |
|
|
|
|
0x07, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x08, 0x42, 0x64, 0x0a, 0x1a, 0x63, |
|
|
|
|
0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, |
|
|
|
|
0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, |
|
|
|
|
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, |
|
|
|
|
0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, |
|
|
|
|
0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0xaa, 0x02, 0x16, 0x58, 0x72, 0x61, 0x79, 0x2e, |
|
|
|
|
0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, |
|
|
|
|
0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
0x07, 0x12, 0x16, 0x0a, 0x12, 0x58, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, |
|
|
|
|
0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10, 0x08, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, |
|
|
|
|
0x45, 0x10, 0x09, 0x42, 0x64, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, |
|
|
|
|
0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, |
|
|
|
|
0x73, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
|
|
|
|
0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, |
|
|
|
|
0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, |
|
|
|
|
0xaa, 0x02, 0x16, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, |
|
|
|
|
0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
|
|
|
|
0x33, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
|