On Fri, Jul 1, 2011 at 8:58 AM, Daniel Wambold <[email protected]> wrote: > Hello list. Sorry for what is likely a simple question but I'm running out of > time and could use a quick hand. I have a program that encrypts data using > AES256 CBC mode and a 256 bit (obviously) key provided directly to the > encryption engine as-is. I need our Windows-using counterpart to encrypt a > file in exactly the same way, with exactly the same key. OpenSSL seems to > provide command-line access to all the parameters we need (pkcs7, CBC), I > need to ask it to use an encryption key rather than a passphrase (which is, > presumably, converted to a 256 bit key). I started poring over the source but > I haven't yet found the conversion from passphrase to key. Could someone > point me to the code snippet or simply summarize the procedure for me so I > can code the same thing into my app? Alternatively, if there's a way to give > OpenSSL a key directly, that would be very helpful. Thanks in advance! http://www.openssl.org/docs/crypto/evp.html http://www.openssl.org/docs/crypto/EVP_EncryptInit.html
Perhaps you should enlist some help from someone familiar with OpenSSL. OpenSSL's consulting page is at http://www.openssl.org/support/consulting.html. Shining Light offers a lot of OpenSSL/Windows stuff at no charge. It would probably be appreciated if you engaged Thomas at http://www.slproweb.com/products/Win32OpenSSL.html. Jeff ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
