Re: OpenSSL cryptography fails in release mode, but no in debug

2009-04-16 Thread Atti
9:16 PM, Victor Duchovni wrote: > On Wed, Apr 15, 2009 at 08:19:34PM +0300, Atti wrote: > >> Okay, well as I said, I compiled and ran the example from the OpenSSL >> docs (http://openssl.org/docs/crypto/EVP_EncryptInit.html#EXAMPLES), >> which has an IV, and the application stil

Re: OpenSSL cryptography fails in release mode, but no in debug

2009-04-15 Thread Atti
5PM +0300, Atti wrote: > >> I get always the same output for debug / and the "different" same each >> time for the release, if I use the same key and the same input data. > > Clearly you have a constant IV with the debug library and a "random" > IV otherwis

Re: OpenSSL cryptography fails in release mode, but no in debug

2009-04-15 Thread Atti
h too, with the same results. I assume I use the functions correctly, because they work in debug mode. I don't know what an "IV" is. On Wed, Apr 15, 2009 at 7:57 PM, Victor Duchovni wrote: > On Wed, Apr 15, 2009 at 11:46:56AM +0300, Atti wrote: > >> I built the new Ope

Installing/using OpenSSL

2009-04-15 Thread Atti
Hello, I'm having some weird problems with all of my OpenSSL applications (as a described in my previous mail), and they're most probably caused by me using the wrong libs/DLL's. My OpenSSL version is the newest (1.0.0beta), i built it just like the install instructions say, on a WIN32 machine. The

Re: OpenSSL cryptography fails in release mode, but no in debug

2009-04-15 Thread Atti
release build with VS2008, and they both generated different cyphertexts with the same key and input data. I also used the same .DLL, becase there is only one, and as I read from the FAQ, that should be okay. What am I doing wrong? On Tue, Apr 14, 2009 at 2:49 PM, Atti wrote: > > Sorry, I

Re: OpenSSL cryptography fails in release mode, but no in debug

2009-04-15 Thread Atti
I built the new OpenSSL (1.0.0) and tried to run the blowfish encryption example from the OpenSSL docs ( http://openssl.org/docs/crypto/EVP_EncryptInit.html#EXAMPLES) but this time I used the same library to compile the application, because this build only made this one. I made one debug and one re

Re: OpenSSL cryptography fails in release mode, but no in debug

2009-04-14 Thread Atti
Sorry, I made a mistake when I wrote the first text, I'm using libeay32MDd.lib - /MDd for debug and libeay32MD.lib - /MD for release. I only made the mistake writing this, I'm linking against the correct .libs in my project. On Tue, Apr 14, 2009 at 2:03 PM, Atti wrote: > Hy, I

OpenSSL cryptography fails in release mode, but no in debug

2009-04-14 Thread Atti
Hy, I'm using an older version of OpenSSL (the new one has errors in X509.h), on a Win32 machine, installed as binaries. I'm using the EVP_Encrypt/Decrypt functions and a generated key to encrypt my data, and everything works fine in debug mode. When I try to run the release mode, it still runs fin