I am so sorry, but my problem is not yet completely solved.
Alright, using "-des-cfb" or "-des-ofb" I don't get the "bad decrypt" error message,
but still:
$ des -D -k 'our_key' < in_file > out_file.generated_using_des_utility
$ openssl enc -des-cfb -pass 'pass:our_key' -d -nosalt < in_file >
out_file.generated_using_openssl_des_cfb
$ openssl enc -des-ofb -pass 'pass:our_key' -d -nosalt < in_file >
out_file.generated_using_openssl_des_ofb
$ cmp out_file.generated_using_des_utility out_file.generated_using_openssl_des_cfb
... differ: char 1, line 1
$ cmp out_file.generated_using_des_utility out_file.generated_using_openssl_des_ofb
... differ: char 1, line 1
$ cmp out_file.generated_using_openssl_des_cfb
out_file.generated_using_openssl_des_ofb
... differ: char 1, line 1
Maybe the emulation of "des -D" is quite a little different to "des -d" and not as
easily solvable.
FYI: This is from des's manual page:
-e Encrypt data using an 8 byte key in a manner compatible with sunOS des(1).
-E Encrypt data using a key of nearly unlimited length (1024 bytes). This
will product a more secure encryption.
-d Decrypt data that was encrypted with the -e option.
-D Decrypt data that was encrypted with the -E option.
BTW:
size file name
79653 out_file.generated_using_des_utility
79656 out_file.generated_using_openssl_des_cfb
79656 out_file.generated_using_openssl_des_ofb
79656 in_file
Cheers
J.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]