- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    1.2.1
- 
    None
- 
        merlin
- 
        generic
- 
        solaris_2.6
                    com.sun.crypto.provider.DESKeyFactory contains the following code:
protected SecretKey engineGenerateSecret(KeySpec keySpec)
throws InvalidKeySpecException {
DESKey desKey = null;
try {
if (keySpec == null ||
!(keySpec instanceof DESKeySpec)) {
throw new InvalidKeySpecException
("Inappropriate key specification");
}
If an instance of javax.crypto.spec.SecretKeySpec is passed in to DESKeyFactory.engineGenerateSecret(), it throws an InvalidKeySpecException which may not be necessary.
            
protected SecretKey engineGenerateSecret(KeySpec keySpec)
throws InvalidKeySpecException {
DESKey desKey = null;
try {
if (keySpec == null ||
!(keySpec instanceof DESKeySpec)) {
throw new InvalidKeySpecException
("Inappropriate key specification");
}
If an instance of javax.crypto.spec.SecretKeySpec is passed in to DESKeyFactory.engineGenerateSecret(), it throws an InvalidKeySpecException which may not be necessary.
- relates to
- 
                    JDK-6755701 SunJCE DES/DESede SecretKeyFactory.generateSecret throws InvalidKeySpecExc if passed SecretKeySpec -           
- Closed
 
-