On Wed, Mar 29, 2006, Nagy Zoltn Mrk wrote:

> ohh sorry...
> in the last example:
> but, if i use:
> {
> const EVP_CIPHER *c;
> c = EVP_get_cipherbyname("aes-128-cbc");
> EVP_EncryptInit(&ctx, c, key, NULL);
> }
> doesn't work
> (segmentation fault)
> 

Check to see if "c" is NULL before using it. My guess is that you haven't
initialised the algorithm tables with OpenSSL_add_all_algorithms().

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                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to