1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/* GENERATED SOURCE. DO NOT MODIFY. */
package com.android.org.bouncycastle.crypto.params;
import java.math.BigInteger;
import com.android.org.bouncycastle.asn1.ASN1ObjectIdentifier;
import com.android.org.bouncycastle.asn1.x9.X9ECParameters;
import com.android.org.bouncycastle.math.ec.ECConstants;
import com.android.org.bouncycastle.math.ec.ECCurve;
import com.android.org.bouncycastle.math.ec.ECPoint;
/**
* @hide This class is not part of the Android public SDK API
*/
public class ECNamedDomainParameters
extends ECDomainParameters
{
private ASN1ObjectIdentifier name;
public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n)
{
this(name, curve, G, n, ECConstants.ONE, null);
}
public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h)
{
this(name, curve, G, n, h, null);
}
public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed)
{
super(curve, G, n, h, seed);
this.name = name;
}
public ECNamedDomainParameters(ASN1ObjectIdentifier name, ECDomainParameters domainParameters)
{
super(domainParameters.getCurve(), domainParameters.getG(), domainParameters.getN(), domainParameters.getH(), domainParameters.getSeed());
this.name = name;
}
public ECNamedDomainParameters(ASN1ObjectIdentifier name, X9ECParameters x9)
{
super(x9);
this.name = name;
}
public ASN1ObjectIdentifier getName()
{
return name;
}
}
|