Hi folks,
I'm trying to use the BIO routines with openssl-0.9.5a

I need a idea encryption filter so, after creating this one I used the
BIO_set_cipher but I'm not able to make it works....

this is my code:

        if ((benc=BIO_new(BIO_f_cipher())) == NULL);
                        
        BIO_set_cipher(benc,(const EVP_CIPHER *) EVP_idea_cfb,key,iv,1);

in this way, calling BIO_set_cipher,  I obtain a sigsev even when benc
is != NULL.


Then I tried

if ((benc=BIO_new(BIO_f_cipher())) == NULL);
        
        cipher=EVP_get_cipherbyname("idea-cfb");
        BIO_set_cipher(benc,cipher,key,iv,1);

and 
if ((benc=BIO_new(BIO_f_cipher())) == NULL);
        
        cipher=EVP_get_cipherbyname(LN_idea_cfb64);
        BIO_set_cipher(benc,cipher,key,iv,1);

but cipher is always NULL.


where am I wrong????


max liccardo
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to