Re: what's wrong with this decrypt code?

2004-12-06 Thread hany bee
Please ignore it. My input offset calculation is not correct. _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ __

what's wrong with this decrypt code?

2004-12-06 Thread hany bee
I wrote the following test code to encrypt and decrypt using AES. But somehow, the EVP_DecryptUdpate() is behaving in a way I don't quite understand. The first time it is invoked, the return number of bytes decrypted (parameter "out1" in the API) is always 0. That means, I get one chunk less of

how to do AES ECB with PKCS5 padding

2004-12-06 Thread hany bee
I'm trying to set the default encryption settings so that it is compatible with the default cipher settings. Java, the default AES uses ECB mode and PKCS5 padding. How can I initialize the cipher context to be exactly the same? Could someone provide a little code snippet please? The openssl API