Close
jGuru Forums
Posted By: david_ng Posted On: Tuesday, June 12, 2001 11:49 PM
I am using the ibmjce provider to use the rsa algorithm. It throws ArrayIndexOutOfBoundException when I performs doFinal the following: ... Cipher initialization ... byte cipherText = Cipher.doFinal(plainText.getBytes()); Anyone has come across anything similar? Any help is much appreaciated. LT
Re: jce: rsa.doFinal fails
Posted By: Anonymous Posted On: Tuesday, June 19, 2001 04:55 AM
byte cipherText = Cipher.doFinal(plainText.getBytes()), should be
byte[] cipherText=Cipher.doFinal("some text".getbytes());
as Cipher.doFinal() method returns a byte array.
Posted By: John_Mitchell Posted On: Saturday, June 16, 2001 07:12 PM