Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6682411
Votes 0
Synopsis JCK test failed w/ ArrayIndexOutOfBoundException (-1) when decrypting with no data
Category jce:pkcs11_csp
Reported Against b26
Release Fixed 7(b26)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 31-MAR-2008
Description
The current PKCS5Padding implementation in SunPKCS11 provider assumes that there is at least one padding byte available. However, this assumption isn't true when the user calles doFinal() without any data in decrypt mode. Certain classes, e.g. javax.crypto.CipherInput/OutputStream, use an empty doFinal() call as a way to discard the remaining data when its close() is called.

For scenarios like this, the method should throw BadPaddingException instead of ArrayIndexOutOfBoundException.
Posted Date : 2008-03-31 22:51:51.0
Work Around
N/A
Evaluation
will fix
Posted Date : 2008-03-31 23:20:28.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang