< prev index next >
test/jdk/sun/security/pkcs11/KeyGenerator/TestKeyGenerator.java
Print this page
rev 59107 : imported patch security
@@ -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 >