[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [iaik-jce] Problems with RC4



Hello,

there are two ways for using class EnvelopedData(Stream). The first (more
easy) standard way only can be used when the content encryption algorithm in
mind requires an IV as only algorithm parameter. If you want to use an
algorithm not fulfilling this condition you yourself have to take care for
creating the inherent EncryptedContentInfo. Please see
demo.pkcs.TestEncryptedContentInfo for an example on how using RC4 for
PKCS#7 enveloping.

Regards,
Dieter Bratko

-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von Félix J.García
Clemente
Gesendet: Dienstag, 9. Januar 2001 14:09
An: iaik-jce@iaik.tu-graz.ac.at
Betreff: [iaik-jce] Problems with RC4


Hi all,
I don't get build an EnvelopedData object with this way

   String datastr = new String("Hola pepito ...");
   byte[] data = datastr.getBytes ();
   EnvelopedData envdata = new EnvelopedData(data, AlgorithmID.rc4);

get this exception
    java.lang.ArrayIndexOutOfBoundsException

Can anyone help?
Thanks in advance.

Félix



--
Mailinglist-archive at
http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content:
UNSUBSCRIBE iaik-jce




smime.p7s