Skip to content

Commit 64dc4a4

Browse files
committed
reduced GemSSTests
1 parent 51e39c8 commit 64dc4a4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

core/src/test/java/org/bouncycastle/pqc/crypto/test/GeMSSTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.ArrayList;
88
import java.util.HashMap;
99
import java.util.List;
10+
import java.util.Random;
1011

1112
import junit.framework.TestCase;
1213
import org.bouncycastle.crypto.AsymmetricCipherKeyPair;
@@ -36,6 +37,10 @@ public void testVectors()
3637

3738
TestSampler sampler = new TestSampler();
3839

40+
Random rd = new Random(System.currentTimeMillis());
41+
42+
int offSet = rd.nextInt(10);
43+
3944
String[] fileList = splitOn(files, ' ');
4045
for (int i = 0; i < fileList.length; i++)
4146
{
@@ -65,10 +70,14 @@ public void testVectors()
6570
byte[] sigExpected = Hex.decode((String)buf.get("sm"));
6671
byte[] seed = Hex.decode((String)buf.get("seed"));
6772

68-
if (sampler.skipTest(count))
73+
if (Integer.parseInt(count) != offSet)
6974
{
7075
continue;
7176
}
77+
// if (sampler.skipTest(count))
78+
// {
79+
// continue;
80+
// }
7281

7382
GeMSSKeyPairGenerator kpGen = new GeMSSKeyPairGenerator();
7483
SecureRandom random = new NISTSecureRandom(seed, null);

0 commit comments

Comments
 (0)