sorry, you have to change the endian of the KEY, not the streams

lorenzo


-----Original Message-----
From: Szabó Lőrinc 
Sent: Thursday, October 10, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: RE: Blowfish crossplatform endian problem


I think I got it boys! :)

        The solution is:

        You just only have to change the endian-ness every dword of the
input encrypted stream,
        and the decrypted stream will be ok.

        Now, i just only have to search for the right implementations (which
must have to be similar)
        SPARC encryption -> Intel decryption..


lorenzo

-----Original Message-----
From: Szabó Lőrinc 
Sent: Thursday, October 10, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: Blowfish crossplatform endian problem


Hello!  

        I use latest OpenSSL 0.9.6

        I encrypt a stream on an Intel machine with a specified 64bit
initvector using BF_cfb64_encrypt
        like this: 0123456789ABCDEF  (hex stream)


On an UltraSparc i wanted to decrypt the the encrypted stream, but the
stream was messed...
When i tried the decryption with a modified initvector (because of the
endianness)
        67452301EFCDAB89

another stream comes out, but also not the one what i originally encrypted
on Intel.

Whats wrong? Did a make the correct modifications to avoid endian-problems?
Or maybe a bug?
How can i fix my code?

Thanks in advance,
lorenzo

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to