On Fri, May 06, 2011, Bugcollect.com wrote: > Hello, > > I need to exchange encrypted content with an existing application on Windows > with an RC4 key that is salted as per > http://msdn.microsoft.com/en-us/library/aa387782%28v=vs.85%29.aspx > (KP_SALT_EX). Note that this is not a passphrase and salt key derivation, but > a cipher initialized with some a known key and known initialization vector, > similar to a block cipher. > > I think technically RC4 does not have an IV, but what is the equivalent > operation I can perform in openssl to get the cipher in the desired state? > Specifying the salt as the iv param in EVP_EncryptInit does not work. >
IIRC correctly this was originally to comply with export regulations where part of the key was in plain text. I think you concatenate the CryptoAPI key and salt values to produce a key you can provide to OpenSSL. In some cases you may have to append zeros so the result is 128 bits in length. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org