Re: How to do encryption using AES in Openssl

2012-03-30 Thread Ben Laurie
On Thu, Mar 29, 2012 at 5:40 AM, Prashanth kumar N prashanth.kuma...@gmail.com wrote: Thanks Ken for pointing out the mistake... after changing to AES_Decrypt(), it worked but i still see issue when i print the decrypted output as it has extra non-ascii characters in it. Below is the input

[no subject]

2012-03-30 Thread Chandrasekhar
Hi , I am new to this openssl libraries. I am facing a issue in the below code. When I encrypt, it is giving all zeroes as output. And when I decrypt I am not getting the exact message. Please, I need help in this. #define BUFSIZE 1024 int main(int argc, char *argv[]) {

Re: No Subject

2012-03-30 Thread carlyoung
What do you think strlen(in) will return? You are mixing up variable length C strings (nul terminated) with binary data - always pass the true data length Carl On Thu 29/03/12 12:58 PM , Chandrasekhar chandrasek...@evolute-sys.com sent: Hi , I am new to this openssl libraries. I am

Error cross-compiling openssl 1.X on mingw-w64

2012-03-30 Thread Leandro Santiago
Hello to all. I'm using mingw-w64 (targeting win32) to cross compile openssl. I'm using a current snapshot of mingw-w64 (gcc-4.7.0) and openssl-1.0.1 (but I had the same error with 1.0.0) and tried in two different machines, one with ubuntu 11.04 32-bit and another with kubuntu 11.10 64-bit. The

Re: Error cross-compiling openssl 1.X on mingw-w64

2012-03-30 Thread Leandro Santiago
Hello to all. I'm using mingw-w64 (targeting win32) to cross compile openssl. I'm using a current snapshot of mingw-w64 (gcc-4.7.0)  and openssl-1.0.1 (but I had the same error with 1.0.0) and tried in two different machines, one with ubuntu 11.04 32-bit and another with kubuntu 11.10 64-bit. The