mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 02:33:41 +00:00
support more ciphers
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ dnl -*- Autoconf -*-
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.67])
|
||||
AC_INIT([shadowsocks], [1.3], [max.c.lv@gmail.com])
|
||||
AC_INIT([shadowsocks], [1.3.1], [max.c.lv@gmail.com])
|
||||
AC_CONFIG_SRCDIR([src/encrypt.c])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
|
||||
+2
-1
@@ -68,7 +68,8 @@ password.
|
||||
.B \-m \fIencrypt_method\fP
|
||||
Set the shadowsocks encryption method. Currently, shadowsocks accepts several
|
||||
encryption methods: table, rc4, aes-128-cfb, aes-192-cfb, aes-256-cfb, bf-cfb,
|
||||
cast5-cfb and des-cfb. The default method is \fItable\fP.
|
||||
camellia-128-cfb, camellia-192-cfb, camellia-256-cfb, cast5-cfb, des-cfb,
|
||||
idea-cfb, rc2-cfb and seed-cfb. The default method is \fItable\fP.
|
||||
.TP
|
||||
.B \-f \fIpid_file\fP
|
||||
Start shadowsocks as a daemon with a specific pid file.
|
||||
|
||||
+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