The 3rd parameter, IV, is the initialization vector used in
bloc cipher with chaining mode (e.g. RC2-CBC). Since RC4
is a stream cipher, you can ignore it.

BTW, your certificate and RSA key are not needed for the
use of a symmetric ciphrer. All you have to do is set the secret
key and call the the functions. 

See PEM_ASN1_write_bio in pem\pem_lib.c



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Yuriy Stul
> Sent: Wednesday, June 16, 1999 10:05 AM
> To: OpenSLL Users Mail List
> Subject: Sample for encode/decode
> 
> 
> Hi there!
> 
> Can anyone send me simple sample for encode / decode.
> I have ready certificate, RSA. I need to encode data buffer
> with use EVP_rc4().
> I use EVP_EncryptInit, EVP_EncryptUpdate and EVP_EncryptFinal.
> I don't know exactly what I have to use as 3-d parameter in function 
> EVP_EncryptInit (unsigned char *key).
> 
> Thanks in advance.
> 
> Regards
> Yuriy Stul
> <mailto:[EMAIL PROTECTED]> <http://www.tashilon.com>
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
> 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to