BigInteger b = BigInteger.valueOf(19L);
byte[] seed = new byte[24];
// perform test case 1
try {
new EllipticCurve(f, a, b, seed);
fail("#1: Expected IAE not thrown");
} catch (IllegalArgumentException ok) {}
// test case 1.1 parameters set,
// b is not in field
f = new ECFieldFp(BigInteger.valueOf(23L));
a = BigInteger.valueOf(1L);
b = BigInteger.valueOf(23L);
seed = new byte[24];
// perform test case 1.1
try {
new EllipticCurve(f, a, b, seed);
fail("#1.1: Expected IAE not thrown");
} catch (IllegalArgumentException ok) {}
// test case 2 parameters set,
// b is not in field
f = new ECFieldFp(BigInteger.valueOf(23L));
a = BigInteger.valueOf(19L);
b = BigInteger.valueOf(24L);
seed = new byte[24];
// perform test case 2
try {
new EllipticCurve(f, a, b, seed);
fail("#2: Expected IAE not thrown");
} catch (IllegalArgumentException ok) {}
// test case 3 parameters set,
// both a and b are not in field
f = new ECFieldFp(BigInteger.valueOf(23L));
a = BigInteger.valueOf(25L);
b = BigInteger.valueOf(240L);
seed = new byte[24];
// perform test case 3
try {
new EllipticCurve(f, a, b, seed);
fail("#3: Expected IAE not thrown");
} catch (IllegalArgumentException ok) {}
}