United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4051143 : Triple DES mode not implemented although doc says it is

Details
Type:
Bug
Submit Date:
1997-05-09
Status:
Closed
Updated Date:
1997-11-25
Project Name:
JDK
Resolved Date:
1997-11-25
Component:
security-libs
OS:
solaris_2.5.1
Sub-Component:
javax.crypto
CPU:
sparc
Priority:
P3
Resolution:
Won't Fix
Affected Versions:
1.1
Fixed Versions:

Related Reports

Sub Tasks

Description
The JCE Spec says that Triple DES is implemented but it doesn't seem
to be supported.   None of these variants of trying to use the DES 
implementation in triple DES mode work: 

	Cipher.getInstance("DES/ECB-EDE/PKCS#5);
	Cipher.getInstance("DES/ECB-EDE3/PKCS#5);
	Cipher.getInstance("DES-EDE/ECB/PKCS#5);


The runtime error messages are

java.security.NoSuchAlgorithmException: algorithm DES-EDE not available.
	at java.security.Security.getEngineClassName(Security.java)
	at java.security.Security.getEngineClassName(Security.java)
	at java.security.Security.getImpl(Security.java)
	at java.security.Cipher.getInstance(Cipher.java:226)
	at en3.main(en3.java:45)


java.security.NoSuchAlgorithmException: unknown mode ECB-EDE
	at java.security.Cipher$PrivateAlgorithm.<init>(Cipher.java:315)
	at java.security.Cipher.getInstance(Cipher.java:221)
	at en3.main(en3.java:45)


java.security.NoSuchAlgorithmException: unknown mode ECB-EDE3
	at java.security.Cipher$PrivateAlgorithm.<init>(Cipher.java:315)
	at java.security.Cipher.getInstance(Cipher.java:221)
	at en3.main(en3.java:45)


                                    

Comments
PUBLIC COMMENTS

Triple DES mode not implemented although JCE Spec lists it as implemented 
                                     
2004-06-10
EVALUATION


jan.luehe@Eng 1997-11-25

This observation is correct: Triple DES is not implemented by JCE1.1, even
though the documentation claims it is.
However, triple DES is provided by JCE1.2, which supersedes JCE1.1. 
Therefore, it will not be added to JCE1.1.
                                     
2004-06-11



Hardware and Software, Engineered to Work Together