1010import java .util .Random ;
1111import java .util .Set ;
1212
13+ import junit .framework .Test ;
14+ import junit .framework .TestCase ;
15+ import junit .framework .TestSuite ;
1316import org .bouncycastle .asn1 .x9 .ECNamedCurveTable ;
1417import org .bouncycastle .asn1 .x9 .X9ECParameters ;
1518import org .bouncycastle .asn1 .x9 .X9ECPoint ;
2528import org .bouncycastle .util .Integers ;
2629import org .bouncycastle .util .encoders .Hex ;
2730
28- import junit .framework .Test ;
29- import junit .framework .TestCase ;
30- import junit .framework .TestSuite ;
31-
3231/**
3332 * Test class for {@link org.bouncycastle.math.ec.ECPoint ECPoint}. All
3433 * literature values are taken from "Guide to elliptic curve cryptography",
@@ -51,7 +50,7 @@ public class ECPointTest extends TestCase
5150 */
5251 public static class Fp
5352 {
54- private final BigInteger q = new BigInteger ("29 " );
53+ private final BigInteger q = new BigInteger ("1063 " );
5554
5655 private final BigInteger a = new BigInteger ("4" );
5756
@@ -65,7 +64,7 @@ public static class Fp
6564
6665 private final ECPoint infinity = curve .getInfinity ();
6766
68- private final int [] pointSource = { 5 , 22 , 16 , 27 , 13 , 6 , 14 , 6 };
67+ private final int [] pointSource = { 1 , 5 , 4 , 10 , 234 , 1024 , 817 , 912 };
6968
7069 private ECPoint [] p = new ECPoint [pointSource .length / 2 ];
7170
0 commit comments