more options,help message

This commit is contained in:
wangyu
2017-07-26 08:51:05 +08:00
committed by wangyu
parent 93c0d789c4
commit 66c201e629
5 changed files with 267 additions and 116 deletions

View File

@@ -15,6 +15,9 @@ static int8_t zero_iv[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0};//this prog
extern const int max_data_len;
extern const int buf_len;
map<int, string> auth_mode_tostring = {{auth_none, "none"}, {auth_md5, "md5"}, {auth_crc32, "crc32"},{auth_sum,"sum"}};
map<int, string> cipher_mode_tostring={{cipher_none,"none"},{cipher_aes128cbc,"aes128cbc"},{cipher_xor,"xor"}};
auth_mode_t auth_mode=auth_sum;
cipher_mode_t cipher_mode=cipher_xor;