encrypt.cpp refactor to suppport more mode

This commit is contained in:
wangyu
2017-07-24 12:34:42 +08:00
committed by wangyu
parent 5568a7e7e2
commit 49f6b93cba
2 changed files with 141 additions and 2 deletions

View File

@@ -11,4 +11,11 @@ int my_decrypt(const char *data,char *output,int &len,char * key);
int my_encrypt_pesudo_header(uint8_t *data,uint8_t *output,int &len,uint8_t * key,uint8_t *header,int hlen);
int my_decrypt_pesudo_header(uint8_t *data,uint8_t *output,int &len,uint8_t * key,uint8_t *header,int hlen);
const int auth_none=0;
const int auth_md5=1;
const int cipher_none=0;
const int cipher_aes128cbc=1;
#endif