public final class ECParameters
extends java.security.AlgorithmParametersSpi
EcpkParameters ::= CHOICE {
ecParameters ECParameters,
namedCurve OBJECT IDENTIFIER,
implicitlyCA NULL }
ECParameters ::= SEQUENCE {
version ECPVer, -- version is always 1
fieldID FieldID, -- identifies the finite field over
-- which the curve is defined
curve Curve, -- coefficients a and b of the
-- elliptic curve
base ECPoint, -- specifies the base point P
-- on the elliptic curve
order INTEGER, -- the order n of the base point
cofactor INTEGER OPTIONAL -- The integer h = #E(Fq)/n
}
ECPVer ::= INTEGER {ecpVer1(1)}
Curve ::= SEQUENCE {
a FieldElement,
b FieldElement,
seed BIT STRING OPTIONAL }
FieldElement ::= OCTET STRING
ECPoint ::= OCTET STRING
| Constructor and Description |
|---|
ECParameters() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
engineGetEncoded() |
protected byte[] |
engineGetEncoded(java.lang.String encodingMethod) |
protected <T extends java.security.spec.AlgorithmParameterSpec> |
engineGetParameterSpec(java.lang.Class<T> spec) |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) |
protected void |
engineInit(byte[] params) |
protected void |
engineInit(byte[] params,
java.lang.String decodingMethod) |
protected java.lang.String |
engineToString() |
static java.security.AlgorithmParameters |
getAlgorithmParameters(java.security.spec.ECParameterSpec spec) |
public static java.security.AlgorithmParameters getAlgorithmParameters(java.security.spec.ECParameterSpec spec)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionprotected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
throws java.security.spec.InvalidParameterSpecException
engineInit in class java.security.AlgorithmParametersSpijava.security.spec.InvalidParameterSpecExceptionprotected void engineInit(byte[] params)
throws java.io.IOException
engineInit in class java.security.AlgorithmParametersSpijava.io.IOExceptionprotected void engineInit(byte[] params,
java.lang.String decodingMethod)
throws java.io.IOException
engineInit in class java.security.AlgorithmParametersSpijava.io.IOExceptionprotected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T> spec)
throws java.security.spec.InvalidParameterSpecException
engineGetParameterSpec in class java.security.AlgorithmParametersSpijava.security.spec.InvalidParameterSpecExceptionprotected byte[] engineGetEncoded()
throws java.io.IOException
engineGetEncoded in class java.security.AlgorithmParametersSpijava.io.IOExceptionprotected byte[] engineGetEncoded(java.lang.String encodingMethod)
throws java.io.IOException
engineGetEncoded in class java.security.AlgorithmParametersSpijava.io.IOExceptionprotected java.lang.String engineToString()
engineToString in class java.security.AlgorithmParametersSpi