Skip to content

Commit 8a3c92c

Browse files
committed
8341927: Replace hardcoded security providers with new test.provider.name system property
8343848: Fix typo of property name in TestOAEPPadding after 8341927 Reviewed-by: lucy Backport-of: 9bdf2a619d1d158d6c1e8e1e1238a4229e0b0783
1 parent afbbf1b commit 8a3c92c

File tree

222 files changed

+970
-676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+970
-676
lines changed

doc/testing.html

+15
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ <h1 class="title">Testing the JDK</h1>
4444
<li><a href="#docker-tests">Docker Tests</a></li>
4545
<li><a href="#non-us-locale">Non-US locale</a></li>
4646
<li><a href="#pkcs11-tests">PKCS11 Tests</a></li>
47+
<li><a href="#testing-with-alternative-security-providers"
48+
id="toc-testing-with-alternative-security-providers">Testing with
49+
alternative security providers</a></li>
4750
<li><a href="#client-ui-tests">Client UI Tests</a></li>
4851
</ul></li>
4952
</ul>
@@ -242,6 +245,18 @@ <h3 id="pkcs11-tests">PKCS11 Tests</h3>
242245
<pre><code>$ make test TEST=&quot;jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java&quot; \
243246
JTREG=&quot;JAVA_OPTIONS=-Djdk.test.lib.artifacts.nsslib-linux_aarch64=/path/to/NSS-libs&quot;</code></pre>
244247
<p>For more notes about the PKCS11 tests, please refer to test/jdk/sun/security/pkcs11/README.</p>
248+
<h3 id="testing-with-alternative-security-providers">Testing with
249+
alternative security providers</h3>
250+
<p>Some security tests use a hardcoded provider for
251+
<code>KeyFactory</code>, <code>Cipher</code>,
252+
<code>KeyPairGenerator</code>, <code>KeyGenerator</code>,
253+
<code>AlgorithmParameterGenerator</code>, <code>KeyAgreement</code>,
254+
<code>Mac</code>, <code>MessageDigest</code>, <code>SecureRandom</code>,
255+
<code>Signature</code>, <code>AlgorithmParameters</code>,
256+
<code>Configuration</code>, <code>Policy</code>, or
257+
<code>SecretKeyFactory</code> objects. Specify the
258+
<code>-Dtest.provider.name=NAME</code> property to use a different
259+
provider for the service(s).</p>
245260
<h3 id="client-ui-tests">Client UI Tests</h3>
246261
<h4 id="system-key-shortcuts">System key shortcuts</h4>
247262
<p>Some Client UI tests use key sequences which may be reserved by the operating system. Usually that causes the test failure. So it is highly recommended to disable system key shortcuts prior testing. The steps to access and disable system key shortcuts for various platforms are provided below.</p>

doc/testing.md

+9
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,15 @@ $ make test TEST="jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java" \
551551
For more notes about the PKCS11 tests, please refer to
552552
test/jdk/sun/security/pkcs11/README.
553553

554+
### Testing with alternative security providers
555+
556+
Some security tests use a hardcoded provider for `KeyFactory`, `Cipher`,
557+
`KeyPairGenerator`, `KeyGenerator`, `AlgorithmParameterGenerator`,
558+
`KeyAgreement`, `Mac`, `MessageDigest`, `SecureRandom`, `Signature`,
559+
`AlgorithmParameters`, `Configuration`, `Policy`, or `SecretKeyFactory` objects.
560+
Specify the `-Dtest.provider.name=NAME` property to use a different provider for
561+
the service(s).
562+
554563
### Client UI Tests
555564

556565
#### System key shortcuts

test/jdk/com/sun/crypto/provider/CICO/CICODESFuncTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -66,7 +66,8 @@ public class CICODESFuncTest {
6666
private static final int IV_LENGTH = 8;
6767

6868
public static void main(String[] args) throws Exception {
69-
Provider provider = Security.getProvider("SunJCE");
69+
Provider provider = Security.getProvider(
70+
System.getProperty("test.provider.name", "SunJCE"));
7071
if (provider == null) {
7172
throw new RuntimeException("SunJCE provider does not exist.");
7273
}

test/jdk/com/sun/crypto/provider/CICO/CICOSkipTest.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -204,9 +204,10 @@ private void initCiphers(String algo, SecretKey key,
204204
AlgorithmParameterSpec aps) throws NoSuchAlgorithmException,
205205
NoSuchPaddingException, InvalidKeyException,
206206
InvalidAlgorithmParameterException {
207-
Provider provider = Security.getProvider("SunJCE");
207+
String providerName = System.getProperty("test.provider.name", "SunJCE");
208+
Provider provider = Security.getProvider(providerName);
208209
if (provider == null) {
209-
throw new RuntimeException("SunJCE provider does not exist.");
210+
throw new RuntimeException(providerName + " provider does not exist.");
210211
}
211212
Cipher ci1 = Cipher.getInstance(algo, provider);
212213
ci1.init(Cipher.ENCRYPT_MODE, key, aps);

test/jdk/com/sun/crypto/provider/CICO/PBEFunc/AESPBEWrapper.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -69,9 +69,10 @@ public AESPBEWrapper(PBEAlgorithm algo, String passwd)
6969
*/
7070
@Override
7171
protected Cipher initCipher(int mode) throws GeneralSecurityException {
72-
Provider provider = Security.getProvider("SunJCE");
72+
String providerName = System.getProperty("test.provider.name", "SunJCE");
73+
Provider provider = Security.getProvider(providerName);
7374
if (provider == null) {
74-
throw new RuntimeException("SunJCE provider does not exist.");
75+
throw new RuntimeException(providerName + ": provider does not exist.");
7576
}
7677
// get Cipher instance
7778
Cipher ci = Cipher.getInstance(transformation, provider);

test/jdk/com/sun/crypto/provider/CICO/PBEFunc/DefaultPBEWrapper.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -58,9 +58,10 @@ public DefaultPBEWrapper(PBEAlgorithm algo, String passwd) {
5858
*/
5959
@Override
6060
protected Cipher initCipher(int mode) throws GeneralSecurityException {
61-
Provider provider = Security.getProvider("SunJCE");
61+
String providerName = System.getProperty("test.provider.name", "SunJCE");
62+
Provider provider = Security.getProvider(providerName);
6263
if (provider == null) {
63-
throw new RuntimeException("SunJCE provider does not exist.");
64+
throw new RuntimeException(providerName + ": provider does not exist.");
6465
}
6566
SecretKey key = SecretKeyFactory.getInstance(baseAlgo)
6667
.generateSecret(new PBEKeySpec(password.toCharArray()));

test/jdk/com/sun/crypto/provider/CICO/PBEFunc/PBKDF2Wrapper.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -89,9 +89,10 @@ public PBKDF2Wrapper(PBEAlgorithm algo, String passwd)
8989
*/
9090
@Override
9191
protected Cipher initCipher(int mode) throws GeneralSecurityException {
92-
Provider provider = Security.getProvider("SunJCE");
92+
String providerName = System.getProperty("test.provider.name", "SunJCE");
93+
Provider provider = Security.getProvider(providerName);
9394
if (provider == null) {
94-
throw new RuntimeException("SunJCE provider does not exist.");
95+
throw new RuntimeException(providerName + ": provider does not exist.");
9596
}
9697
// Generate secret key
9798
PBEKeySpec pbeKeySpec = new PBEKeySpec(password.toCharArray(),

test/jdk/com/sun/crypto/provider/Cipher/AEAD/Encrypt.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -122,7 +122,8 @@ public Encrypt(Provider provider, String algorithm, String mode,
122122
}
123123

124124
public static void main(String[] args) throws Exception {
125-
Provider p = Security.getProvider("SunJCE");
125+
Provider p = Security.getProvider(
126+
System.getProperty("test.provider.name", "SunJCE"));
126127
for (String alg : ALGORITHMS) {
127128
for (int keyStrength : KEY_STRENGTHS) {
128129
if (keyStrength > Cipher.getMaxAllowedKeyLength(alg)) {

test/jdk/com/sun/crypto/provider/Cipher/AEAD/GCMLargeDataKAT.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -102,7 +102,8 @@ public class GCMLargeDataKAT {
102102

103103
byte[] encrypt(int inLen) {
104104
try {
105-
cipher = Cipher.getInstance("AES/GCM/NoPadding", "SunJCE");
105+
cipher = Cipher.getInstance("AES/GCM/NoPadding",
106+
System.getProperty("test.provider.name", "SunJCE"));
106107
cipher.init(Cipher.ENCRYPT_MODE, key, spec);
107108
return cipher.doFinal(plaintext, 0, inLen);
108109
} catch (Exception e) {
@@ -125,7 +126,8 @@ boolean decrypt(byte[] data) {
125126
return false;
126127
}
127128
try {
128-
cipher = Cipher.getInstance("AES/GCM/NoPadding", "SunJCE");
129+
cipher = Cipher.getInstance("AES/GCM/NoPadding",
130+
System.getProperty("test.provider.name", "SunJCE"));
129131
cipher.init(Cipher.DECRYPT_MODE, key, spec);
130132
result = cipher.doFinal(data);
131133
} catch (Exception e) {

test/jdk/com/sun/crypto/provider/Cipher/AEAD/GCMParameterSpecTest.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -87,7 +87,8 @@ public GCMParameterSpecTest(int keyLength, int tagLength, int IVlength,
8787
AAD = Helper.generateBytes(AADLength);
8888

8989
// init a secret key
90-
KeyGenerator kg = KeyGenerator.getInstance("AES", "SunJCE");
90+
KeyGenerator kg = KeyGenerator.getInstance("AES",
91+
System.getProperty("test.provider.name", "SunJCE"));
9192
kg.init(keyLength);
9293
key = kg.generateKey();
9394
}
@@ -211,7 +212,8 @@ private byte[] recoverCipherText(byte[] cipherText, GCMParameterSpec spec)
211212

212213
private Cipher createCipher(int mode, GCMParameterSpec spec)
213214
throws Exception {
214-
Cipher cipher = Cipher.getInstance(TRANSFORMATION, "SunJCE");
215+
Cipher cipher = Cipher.getInstance(TRANSFORMATION,
216+
System.getProperty("test.provider.name", "SunJCE"));
215217
cipher.init(mode, key, spec);
216218
return cipher;
217219
}

test/jdk/com/sun/crypto/provider/Cipher/AEAD/KeyWrapper.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@ public class KeyWrapper {
3737

3838
static final String AES = "AES";
3939
static final String TRANSFORMATION = "AES/GCM/NoPadding";
40-
static final String PROVIDER = "SunJCE";
40+
static final String PROVIDER = System.getProperty("test.provider.name", "SunJCE");
4141
static final int KEY_LENGTH = 128;
4242

4343
public static void main(String argv[]) throws Exception {

test/jdk/com/sun/crypto/provider/Cipher/AEAD/ReadWriteSkip.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -50,7 +50,7 @@ static enum BufferType {
5050
static final int BLOCK = 50;
5151
static final int SAVE = 45;
5252
static final int DISCARD = BLOCK - SAVE;
53-
static final String PROVIDER = "SunJCE";
53+
static final String PROVIDER = System.getProperty("test.provider.name", "SunJCE");
5454
static final String AES = "AES";
5555
static final String GCM = "GCM";
5656
static final String PADDING = "NoPadding";

test/jdk/com/sun/crypto/provider/Cipher/AEAD/SameBuffer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -41,7 +41,7 @@
4141
*/
4242
public class SameBuffer {
4343

44-
private static final String PROVIDER = "SunJCE";
44+
private static final String PROVIDER = System.getProperty("test.provider.name", "SunJCE");
4545
private static final String AES = "AES";
4646
private static final String GCM = "GCM";
4747
private static final String PADDING = "NoPadding";

test/jdk/com/sun/crypto/provider/Cipher/AEAD/SealedObjectTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@ public class SealedObjectTest {
3737

3838
private static final String AES = "AES";
3939
private static final String TRANSFORMATION = "AES/GCM/NoPadding";
40-
private static final String PROVIDER = "SunJCE";
40+
private static final String PROVIDER = System.getProperty("test.provider.name", "SunJCE");
4141
private static final int KEY_LENGTH = 128;
4242

4343
public static void main(String[] args) throws Exception {

test/jdk/com/sun/crypto/provider/Cipher/AEAD/WrongAAD.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -44,7 +44,7 @@
4444
*/
4545
public class WrongAAD {
4646

47-
private static final String PROVIDER = "SunJCE";
47+
private static final String PROVIDER = System.getProperty("test.provider.name", "SunJCE");
4848
private static final String TRANSFORMATION = "AES/GCM/NoPadding";
4949
private static final int TEXT_SIZE = 800;
5050
private static final int KEY_SIZE = 128;

test/jdk/com/sun/crypto/provider/Cipher/AES/CICO.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -52,7 +52,7 @@ public class CICO {
5252
"cFB24", "cFB32", "Cfb40", "CFB72", "OfB", "OfB20", "OfB48",
5353
"OfB56", "OFB64", "OFB112", "CFB112", "pCbC" };
5454
private static final String[] PADDING = { "noPadding", "pkcs5padding" };
55-
private static final String PROVIDER = "SunJCE";
55+
private static final String PROVIDER = System.getProperty("test.provider.name", "SunJCE");
5656
private static final int NREADS = 3;
5757
private static final int KEY_LENGTH = 128;
5858

test/jdk/com/sun/crypto/provider/Cipher/AES/CTR.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -50,7 +50,8 @@ public class CTR {
5050

5151
private static final String ALGORITHM = "AES";
5252

53-
private static final String PROVIDER = "SunJCE";
53+
private static final String PROVIDER =
54+
System.getProperty("test.provider.name", "SunJCE");
5455

5556
private static final String[] MODES = {"CTR","CFB24","OFB32","GCM"};
5657

test/jdk/com/sun/crypto/provider/Cipher/AES/Padding.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -47,7 +47,8 @@
4747
public class Padding {
4848

4949
private static final String ALGORITHM = "AES";
50-
private static final String PROVIDER = "SunJCE";
50+
private static final String PROVIDER =
51+
System.getProperty("test.provider.name", "SunJCE");
5152
private static final String[] MODES_PKCS5PAD = {
5253
"ECb", "CbC", "PCBC", "OFB",
5354
"OFB150", "cFB", "CFB7", "cFB8", "cFB16", "cFB24", "cFB32",

test/jdk/com/sun/crypto/provider/Cipher/AES/Test4511676.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -41,10 +41,12 @@ public class Test4511676 {
4141

4242
public boolean execute() throws Exception {
4343

44-
Cipher ci = Cipher.getInstance(ALGO, "SunJCE");
44+
Cipher ci = Cipher.getInstance(ALGO,
45+
System.getProperty("test.provider.name", "SunJCE"));
4546

4647
// TEST FIX 4511676
47-
KeyGenerator kg = KeyGenerator.getInstance(ALGO, "SunJCE");
48+
KeyGenerator kg = KeyGenerator.getInstance(ALGO,
49+
System.getProperty("test.provider.name", "SunJCE"));
4850
kg.init(KEYSIZE*8);
4951
SecretKey key = kg.generateKey();
5052
try {

test/jdk/com/sun/crypto/provider/Cipher/AES/Test4512524.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -45,10 +45,12 @@ public class Test4512524 {
4545
public void execute(String mode) throws Exception {
4646

4747
String transformation = ALGO+"/"+mode+"/"+PADDING;
48-
Cipher ci = Cipher.getInstance(transformation, "SunJCE");
48+
Cipher ci = Cipher.getInstance(transformation,
49+
System.getProperty("test.provider.name", "SunJCE"));
4950

5051
// TEST FIX 4512524
51-
KeyGenerator kg = KeyGenerator.getInstance(ALGO, "SunJCE");
52+
KeyGenerator kg = KeyGenerator.getInstance(ALGO,
53+
System.getProperty("test.provider.name", "SunJCE"));
5254
kg.init(KEYSIZE*8);
5355
SecretKey key = kg.generateKey();
5456

0 commit comments

Comments
 (0)