On Thu, Mar 09, 2006, Manuel Arguelles wrote:

> you mean like this?
> 
> $ openssl enc -d -rc4 -in out.bin -k mysecretkey -nosalt
> ¨Å¥
> óVRCÑÆMðù6o
> 
> or maybe using the -K -iv options
> 
> key[0]=0xA0; key[1]=0xA1;
> iv[0]=0xB0; iv[1]=0xB1;
> BIO_set_cipher(cipher, EVP_rc4(), key, iv, 1);
> 
> can I use
> openssl enc -d -rc4 -in out.bin -K A0A1 -iv B0B1
> 

Well RC4 is a stream cipher meaning that it doesn't have an IV. Also the
buffer passed to the key argument must contain a key of the required length.
If it isn't it will use whatever data is in memory after the supplied pointer.

In the case of RC4 the default length is 128 bits so for test purposes use a
string with exactly 16 characters in it.

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                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to