At 11:46 04.04.2002 -0500, you wrote: >Hi, > >I'm trying to use the openssl libraries to decrypt text encrypted using >perl's Crypt::DES module without success. After failing using CBC, I've >switched to a simple 8 byte block encrypted with des_ecb_encrypt and this >still produces different cipher text. Which presumably means the problem >lies with the key ?
Right you are, sir. > I take a hardcoded 8 byte key and use des_string_to_key >and then create a des_key_sched prior to doing the encryption. Err, why do you call des_string_to_key in the first place? It expects a zero-terminated string. And calls strlen() for it. Maybe you are not aware that you just put your 8 bytes in a des_cblock. With memcpy or something. >Does anyone have any suggestions or any experience of using perl / openssl >together just for DES as opposed to complete SSL communication ? > >thanks >Nick Roberts J�rn ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
