On Mon, Mar 14, 2005, John Draper wrote: > Hi, > > I'm using the OpenSSL cryptlib encryption tools shipped with the Mac OS-X. > I'm unable to decrypt a text file encrypted on a Windows XP, using the > "CryptEncrypt" functon, an API in windows. > > The file was encrypted with a 16 byte key (128 bits) on the Windows. > Using RC4 stream cypher. Yea, I know RC4 is weak, but my application > requires I be able to use it for compatibility reasons. > > I'm decrypting it via the "EVP_DecryptInit", "EVP_DecryptUpdate" > "EVP_DecryptFinal" set of library calls. I can furnish the exact source > code to anyone interested in helping me, via private Email. If others > express an interest, I'll post the solution to the net if anyone wants > it. > > Has anyone on this list run into problems where data encrypted using the > WinBlows API's are not able to be decrypted using the Mac OS-X > (FreeBSD) openSSL libraries or cryptlib. I'm using the exact same > symmetric key. > > I can furnish the test files to anyone who can help me. >
No, quite the opposite in fact. In the past I've got RC4 crypto interoping fine on Windoze CryptoAPI and OpenSSL. RC4 isn't "weak" as such but its a stream cipher and appropriate care needs to be taken: basically reusing keys can spoil your whole day. How are you setting the key in CryptoAPI? Windows doesn't allow setting a key value directly in many versions and various tricks are needed. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]