Hello,

I'm trying to compare the results of the openssl tool with the cryptool
1.4.31

+ Filename topsecret.txt which only contains the character 'a'
+ Encrypt it with DES using CBC mode with key and iv = 0 produces the
result '32ea a0fa 4f77 fb92'

user@debian:~$ xxd topsecret.txt
0000000: 61                                       a

user@debian:~$ openssl version
OpenSSL 0.9.8o 01 Jun 2010

user@debian:~$ openssl enc -des-cbc -K 0 -iv 0 -nosalt -in topsecret.txt |
xxd
0000000: 32ea a0fa 4f77 fb92                      2...Ow..

user@debian:~$


+ If I use the cryptool 1.4.31 to do the same exercise the result is '0C29
5D71 8258 D464'


+ I also noticed that openssl generates the same output for different modes
of des e.g.

user@debian:~$ openssl enc -des-ecb -K 0 -iv 0 -nosalt -in topsecret.txt |
xxd
0000000: 32ea a0fa 4f77 fb92                      2...Ow..

While if I do the same in Cryptool the output for the ECB mode is:

'841B D8A4 2931 FCF5'


Any ideas?

thank you,
Luis

Reply via email to