support more ciphers

This commit is contained in:
Max Lv
2013-06-04 08:48:07 +08:00
parent 5b7f057663
commit 2cdf3e18ee
4 changed files with 25 additions and 12 deletions
+7 -1
View File
@@ -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
View File
@@ -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))