On Tue, May 12, 2009 at 05:16:50PM +0200, Simon Wilkinson wrote:

> Hi,
> 
> I am wondering how Blowfish is implemented in OpenSSL, with regards to
> key size used.  What is the default key size used, and how is this
> overridden?  For example, if I wanted to use the algorithm with a
> 256-bit length key, would I simply pass in a key of that length?  I am
> somewhat concerned that the key length may be internally truncated
> since I cannot seem to find much documentation regarding this.

You have to set the key length explicitly:

    http://www.openssl.org/docs/crypto/EVP_EncryptInit.html

    EVP_CIPHER_CTX_set_key_length()

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to