Re: AES 256 EVP APIs for encrypting files

2013-04-25 Thread Taraniteja Vishwanatha
Thank you Matt and Dave. Matt, Yes I agree that I should be calling EncryptInit and EncryptFinal only once. That is one of the mistakes. The reason why I did that was, I am exposing a encryption API to other functions in the project. They dont care how encryption is done. They have a buffer ( usu

RE: AES 256 EVP APIs for encrypting files

2013-04-25 Thread Dave Thompson
>From: owner-openssl-us...@openssl.org On Behalf Of Taraniteja Vishwanatha >Sent: Thursday, 25 April, 2013 16:43 >I was using the low level aes APIs and now have switched to EVP ones. >My string encryption and decryption always work fine. But when it comes >to files, I am getting malloc errors:

Re: AES 256 EVP APIs for encrypting files

2013-04-25 Thread Matt Caswell
On 25 April 2013 21:42, Taraniteja Vishwanatha wrote: > Hey guys, > > I was using the low level aes APIs and now have switched to EVP ones. My Good. That is (in most cases) the correct approach. > string encryption and decryption always work fine. But when it comes to > files, I am getting mall

AES 256 EVP APIs for encrypting files

2013-04-25 Thread Taraniteja Vishwanatha
Hey guys, I was using the low level aes APIs and now have switched to EVP ones. My string encryption and decryption always work fine. But when it comes to files, I am getting malloc errors: malloc: *** error for object : incorrect checksum for freed object - object was probably modified after bein