< prev index next >

test/jdk/sun/security/pkcs11/KeyGenerator/TestKeyGenerator.java

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2003, 2018, 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. --- 1,7 ---- /* ! * 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,117 **** 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); --- 107,116 ----
*** 126,138 **** 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")) { test("ARCFOUR", 1024, p, TestResult.PASS); test("ARCFOUR", 2048, p, TestResult.PASS); test("ARCFOUR", 2056, p, TestResult.FAIL); } } --- 125,135 ---- 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-NSS")) { test("ARCFOUR", 1024, p, TestResult.PASS); test("ARCFOUR", 2048, p, TestResult.PASS); test("ARCFOUR", 2056, p, TestResult.FAIL); } }
< prev index next >