6681652: Two new regression test failures in pkcs11 code
authorvaleriep
Mon, 31 Mar 2008 11:09:57 -0700
changeset 294 61e9ed3ce684
parent 293 3a38b68bc477
child 295 3711f2ad2f6d
child 296 a26e4ea2ca63
6681652: Two new regression test failures in pkcs11 code Summary: Fixed the test to not assume SunJCE provider being the provider for DES Reviewed-by: wetmore
jdk/test/javax/crypto/Cipher/TestGetInstance.java
--- a/jdk/test/javax/crypto/Cipher/TestGetInstance.java	Fri Mar 28 12:56:34 2008 -0700
+++ b/jdk/test/javax/crypto/Cipher/TestGetInstance.java	Mon Mar 31 11:09:57 2008 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -46,9 +46,7 @@
 
         Cipher c;
 
-        c = Cipher.getInstance("des");
-        same(p, c.getProvider());
-        c = Cipher.getInstance("des/cbc/pkcs5padding");
+        c = Cipher.getInstance("PBEWithMD5AndTripleDES");
         same(p, c.getProvider());
 
         c = Cipher.getInstance("des", "SunJCE");