"aes_enc_result_cb" is the encode result
M
mtjo 发布的帖子
-
RE: AES encrypt function example
unsigned long aes_cbc_encrypt(unsigned char in_data[],unsigned long InputLen, unsigned char out_data[]) {
unsigned long outlen;
outlen = AES128_CBC_Encrypt(in_data,InputLen, KEY, out_data);
return outlen;
}unsigned long aes_cbc_decrypt(unsigned char in_data[],unsigned long InputLen, unsigned char out_data[]) {
unsigned long outlen;
outlen = AES128_CBC_Decrypt(in_data, InputLen, KEY, out_data);
return outlen;
}