APAR status
Closed as program error.
Error description
Error Message: The following code throws an exception without the unrestricted policy files: Cipher cipher = Cipher.getInstance( "RSAwithNoPad", "IBMJCE" ); cipher.init( Cipher.ENCRYPT_MODE, pubkey ); // throws exception Exception: java.security.InvalidKeyException: Illegal key size or default parameters . Stack Trace: N/A .
Local fix
Add the unrestricted policy files to the IBM JRE.
Problem summary
The following code throws an exception without the unrestricted policy files: Cipher cipher = Cipher.getInstance( "RSAwithNoPad", "IBMJCE" ); cipher.init( Cipher.ENCRYPT_MODE, pubkey ); // throws exception Exception: java.security.InvalidKeyException: Illegal key size or default parameters
Problem conclusion
This defect will be fixed in: 5.0.0 SR16 6.0.0 SR13FP1 6.0.0 SR14 6.0.1 SR5FP1 6.0.1 SR6 7.0.0 SR4FP1 7.0.0 SR5 . A fix has been applied so that the unrestricted policy files are not necessary to execute the code which was previously failing.
Temporary fix
Comments
APAR Information
APAR number
IV36995
Reported component name
SECURITY
Reported component ID
620700125
Reported release
600
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2013-02-19
Closed date
2013-03-11
Last modified date
2013-03-11
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
SECURITY
Fixed component ID
620700125
Applicable component levels
R600 PSY
UP
R260 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]
Document Information
Modified date:
07 December 2020