> A. Königsdorfer wrote:
>
> Hi!
>
> I want to use Blowfish with a 256 bit key size. Looking at the EVP
> docu I found EVP_CIPHER_CTX_set_key_length.
>
> Some time ago somebody mentioned that it is impossible to use
> differnt key sizes in the EVP API. Is EVP_CIPHER_CTX_set_key_length
> a new function which eliminates this limitation?
>
Yes thats its purpose. The original comment about EVP restrictions no
longer applies to newer versions of OpenSSL. You can now do almost
anything with EVP that you can do with the low level routines, which may
go away one day.
To change the key length you have to call EVP_EncryptInit() (or similar)
to just set the cipher then EVP_CIPHER_CTX_set_key_length() followed by
EVP_EncryptInit() again to set the actual key and IV. see
EVP_EncryptInit() manual page for more info.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]