• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cipher problem with JRE 6 update 22

 
Vaibhav Slg
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing problem with JRE 6 update 22 for following code, this code is running for all JRE previous versions eg. JRE 6 update 22

Cipher rsa = Cipher.getInstance("RSA");

rsa.init(Cipher.DECRYPT_MODE, keyPair.getPrivate());

byte[] sigBytes = rsa.doFinal(BASE_64_DECODER.decodeBuffer(token));

Actually doFinal is returning blank for JRE 6 update 22.
Please help in this regard.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!