Hi, All,
I am trying to use OpenSSL AES (version 0.9.8) encryption/decryption. But it seems not working properply for me. I attached the test files. The problems I got are: 1. The output of decryption is different if I open the optimization option of gcc (or cc in solaris)
   gcc -o test test.c -lcrypto
   gcc -O3 -o test test.c -lcrypto
2. For encryption, the output is different when I just changed the order of the buffer definition. (please see test1() and test2() in test.c )
 gcc -o test test.c -lcrypto

two questions:
1. Am I using the OpenSSl AES library correctly? If not, how am I supposed to do?
  I am a newer to Openssl. Never mind if I am using the library wrong.

2. Are these known problems of the OpenSSL AES implementation?


Thank you in advance for all your help
Regards,
Victor

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

Attachment: test.c
Description: Binary data

Attachment: data.dat
Description: Binary data

Reply via email to