crap... hit send not save...  rest of the email is below

On 4/30/07, Aaron Turner <[EMAIL PROTECTED]> wrote:
I'm having a problem under OS X (10.4.9/Intel) where Openssl 0.9.8e
(compiled from source) is returning different encrypted values using
the cli (openssl enc) and the EVP interface for desx and des-ede3-cbc.

echo -n "Why doesn't this work?" | openssl enc -iv 0B0B0B0B0B0B0B0B  -K \
0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A0A -des-ede3-cbc -a
cUT/lE4Zmui1FCqVUAosCd1nmwQ1gNd1

but using the EVP API I get:

NDHoSSaYJvwx09SoYm87iZmDbcU6Ew==

openssl enc for desx using same parameters as above:

1qLukPtJ6f4p4KsulWiJDomyVA67zkX2


EVP API for desx:

cUT/lE4Zmui1FCqVUAosCd1nmwQ1gNd1

Notice that the EVP desx == openssl enc for des-ede3-cbc!

I've tested the results for all the other DES modes as well as AES,
Rc2,4,5, Blowfish, and Cast5 and they all match as I would expect, so
it doesn't seem to be an issue with how I'm using the EVP API.
Suggestions?

--
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing & replay tools for Unix
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to