mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 05:11:14 +00:00
support more ciphers
This commit is contained in:
+7
-1
@@ -35,8 +35,14 @@ static const char* supported_ciphers[8] = {
|
||||
"aes-192-cfb",
|
||||
"aes-256-cfb",
|
||||
"bf-cfb",
|
||||
"camellia-128-cfb",
|
||||
"camellia-192-cfb",
|
||||
"camellia-256-cfb",
|
||||
"cast5-cfb",
|
||||
"des-cfb"
|
||||
"des-cfb",
|
||||
"idea-cfb",
|
||||
"rc2-cfb",
|
||||
"seed-cfb"
|
||||
};
|
||||
|
||||
static int random_compare(const void *_x, const void *_y, uint32_t i, uint64_t a) {
|
||||
|
||||
+15
-9
@@ -19,15 +19,21 @@
|
||||
#define BUF_SIZE 512
|
||||
#define BLOCK_SIZE 32
|
||||
|
||||
#define NONE -1
|
||||
#define TABLE 0
|
||||
#define RC4 1
|
||||
#define AES_128_CFB 2
|
||||
#define AES_192_CFB 3
|
||||
#define AES_256_CFB 4
|
||||
#define BF_CFB 5
|
||||
#define CAST5_CFB 6
|
||||
#define DES_CFB 7
|
||||
#define NONE -1
|
||||
#define TABLE 0
|
||||
#define RC4 1
|
||||
#define AES_128_CFB 2
|
||||
#define AES_192_CFB 3
|
||||
#define AES_256_CFB 4
|
||||
#define CAMELLIA_128_CFB 5
|
||||
#define CAMELLIA_192_CFB 6
|
||||
#define CAMELLIA_256_CFB 7
|
||||
#define BF_CFB 8
|
||||
#define CAST5_CFB 9
|
||||
#define DES_CFB 10
|
||||
#define IDEA_CFB 11
|
||||
#define RC2_CFB 12
|
||||
#define SEED_CFB 13
|
||||
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
|
||||
Reference in New Issue
Block a user