> 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
>

Reference

http://en.wikipedia.org/wiki/Block_cipher_mode_of_operation

With an initialization vector of zeros, the CBC and ECB modes are
the same for the first block of cypher algorithm output.

- Steve



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to