This is a discussion on Re: DES3: Windows CryptoAPI and OpenSSL - Openssl ; Hello, > The results are amazing to me. > > CryptoAPI derived key > ca ee 31 f5 5e d5 65 00 e9 60 c2 eb 79 58 68 b8 b6 fd d5 26 8d 3c 21 f7 > cb ...
> The results are amazing to me.
> CryptoAPI derived key
> ca ee 31 f5 5e d5 65 00 e9 60 c2 eb 79 58 68 b8 b6 fd d5 26 8d 3c 21 f7
> cb ef 31 f4 5e d5 64 01 e9 61 c2 ea 79 58 68 b9 b6 fd d5 26 8c 3d 20 f7
> keyWin32 value
> As you can see, these keys are a little bit equal.
> But... the 3DES-ciphers are equal!
> What does it mean? Why do 3DES algorithm of CryptoAPI and 3DES algorithm of
> OpenSSL produce the same cipher by different keys?
In DES only 7 bits of 8 from any byte are used, one bit (called "parity"
bit) is ignored.
In your example:
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
as you see, only last bit is different (and is ignored by algorithm)
OpenSSL Project http://www.openssl.org
User Support Mailing List email@example.com
Automated List Manager firstname.lastname@example.org