JDK-4051143 : Triple DES mode not implemented although doc says it is
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 1.1
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1997-05-09
  • Updated: 1997-11-25
  • Resolved: 1997-11-25
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
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

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