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:
byte cipherText = Cipher.doFinal(plainText.getBytes());
Anyone has come across anything similar? Any help is much appreaciated.
Re: jce: rsa.doFinal fails
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.
Saturday, June 16, 2001 07:12 PM