提交 d03debec 编写于 作者: V valeriep

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
上级 ef975556
/* /*
* 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -46,9 +46,7 @@ public class TestGetInstance { ...@@ -46,9 +46,7 @@ public class TestGetInstance {
Cipher c; Cipher c;
c = Cipher.getInstance("des"); c = Cipher.getInstance("PBEWithMD5AndTripleDES");
same(p, c.getProvider());
c = Cipher.getInstance("des/cbc/pkcs5padding");
same(p, c.getProvider()); same(p, c.getProvider());
c = Cipher.getInstance("des", "SunJCE"); c = Cipher.getInstance("des", "SunJCE");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册