< prev index next >
test/jdk/sun/security/pkcs11/KeyGenerator/TestKeyGenerator.java
Print this page
rev 59383 : [mq]: final
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2020, Oracle and/or its affiliates. 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -107,11 +107,10 @@
test("DESede", 256, p, TestResult.FAIL);
// Different PKCS11 impls have different ranges
// of supported key sizes for variable-key-length
// algorithms.
- // Solaris> Blowfish: 32-128 or even 448 bits, RC4: 8-128 bits or as much as 2048 bits
// NSS> Blowfish: n/a, RC4: 8-2048 bits
// However, we explicitly disallowed key sizes less
// than 40-bits.
test("Blowfish", 0, p, TestResult.FAIL);
@@ -126,13 +125,11 @@
test("ARCFOUR", 0, p, TestResult.FAIL);
test("ARCFOUR", 32, p, TestResult.FAIL);
test("ARCFOUR", 40, p, TestResult.PASS);
test("ARCFOUR", 128, p, TestResult.PASS);
- if (p.getName().equals("SunPKCS11-Solaris")) {
- test("ARCFOUR", 1024, p, TestResult.TBD);
- } else if (p.getName().equals("SunPKCS11-NSS")) {
+ if (p.getName().equals("SunPKCS11-NSS")) {
test("ARCFOUR", 1024, p, TestResult.PASS);
test("ARCFOUR", 2048, p, TestResult.PASS);
test("ARCFOUR", 2056, p, TestResult.FAIL);
}
}
< prev index next >