jce: rsa.doFinal fails
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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.

Re: jce: rsa.doFinal fails

Posted By:   John_Mitchell  
Posted On:   Saturday, June 16, 2001 07:12 PM

Sounds like you should contact the support group at IBM for that provider.
About | Sitemap | Contact