On Thursday September 22nd 2005 Thomas Wieczorek wrote: > ... > > Is there any problem with the variable "ivec" or is the mistake somewhere > else?
The initialisation pointer must point to the same character array (of 8 bytes for blowfish) for both encrypting and decrypting. In your case, by using an uninitialized pointer, you not only effectively generate a different random encoding each time you use it (as you noticed) but it is also surprising you didn't get a segmentation fault or something. In general you can further better use the higher level routines like EVP (see the man page for EvpEncryptInit) instead of directly using the blowfish routines, but that is not the main problem here. -- Marco Roeland ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]