Hi,
I am hoping somebody can set me straight on this. I haven't
been able to figure it out over the last few days.
I have ported to 0.9.8E from 0.9.7E, and am having trouble getting the
CRYPTO shareable image to link. Probably serves me right for waiting for so
long to port. ;-)
Hello,
> The encrypted.file is exactly as the original.
If length of your file is multiple of 16 then you will got this behavior.
AES_encrypt_cbc() function does not add additional padding block in this
case.
> void aes::encrypt_file(const char * key, const char * path,
> unsigned char *
The encrypted.file is exactly as the original.
Thanks in advance,
julian
void aes::encrypt_file(const char * key, const char * path,
unsigned char * buf /*[in|out]*/)
{
// ...
unsigned char fbuf_in[1024];
unsigned char fbuf_out[1024];
// Open the reading and writing paths.