ECParameterSpecpublic class ECParameterSpec extends Object implements AlgorithmParameterSpecThis immutable class specifies the set of domain parameters
used with elliptic curve cryptography (ECC). |
Fields Summary |
---|
private final EllipticCurve | curve | private final ECPoint | g | private final BigInteger | n | private final int | h |
Constructors Summary |
---|
public ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h)Creates elliptic curve domain parameters based on the
specified values.
if (curve == null) {
throw new NullPointerException("curve is null");
}
if (g == null) {
throw new NullPointerException("g is null");
}
if (n == null) {
throw new NullPointerException("n is null");
}
if (n.signum() != 1) {
throw new IllegalArgumentException("n is not positive");
}
if (h <= 0) {
throw new IllegalArgumentException("h is not positive");
}
this.curve = curve;
this.g = g;
this.n = n;
this.h = h;
|
|