Click to See Complete Forum and Search --> : problems with blowfish cipher alorithm (openssl)


threadhead
07-28-2004, 06:00 PM
hello!

just recently i stumbled across a rather annoying problem
with the blowfish cipher implementation of libcrypto from openssl.
i am using the functions
BF_set_key() and BF_ecb_encrypt() as described in man 3 blowfish.

as a test i take the contents of a .c source file.
the files contents are encrypted and written to a new file.
following to that i read in the encrypted file and decrypt the data.
to my surprise the decrypted data is not completely the same as the cleartext data.
to clarify: some parts of the file look like as if they were still encrypted
but some do not and actually conform to the original cleartext.

what may cause this problem?

thanks threadhead