United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6687725 Internal PKCS5Padding impl should throw IllegalBlockSizeException and not BadPaddingException
6687725 : Internal PKCS5Padding impl should throw IllegalBlockSizeException and not BadPaddingException

Details
Type:
Bug
Submit Date:
2008-04-11
Status:
Closed
Updated Date:
2012-03-17
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
security-libs
OS:
generic
Sub-Component:
javax.crypto:pkcs11
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7

Related Reports
Backport:

Sub Tasks

Description
The native PKCS11 mechanism which performs padding report error code equivalents to IllegalBlockSizeException when the padding bytes are missing. The internal PKCS5Padding impl used by SunPKCS11 provider should match this behavior so the same exception is thrown regardless whether users are using native PKCS11 mechs which supports padding or the combination of (native PKCS11 mechs which does NOT support padding + PKCS5Padding impl from SunPKCS11 provider).

                                    

Comments
EVALUATION

will fix.
                                     
2008-04-11



Hardware and Software, Engineered to Work Together