public final class ECParameters extends 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
This class is a modified version of the ECParameters class in the Sun library, designed to adapt to the SM2 algorithm.ECParameters| 限定符和类型 | 字段和说明 |
|---|---|
private ECNamedCurve |
namedCurve |
| 构造器和说明 |
|---|
ECParameters() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected byte[] |
engineGetEncoded() |
protected byte[] |
engineGetEncoded(String encodingMethod) |
protected <T extends AlgorithmParameterSpec> |
engineGetParameterSpec(Class<T> spec) |
protected void |
engineInit(AlgorithmParameterSpec paramSpec) |
protected void |
engineInit(byte[] params) |
protected void |
engineInit(byte[] params,
String decodingMethod) |
protected String |
engineToString() |
static AlgorithmParameters |
getAlgorithmParameters(ECParameterSpec spec) |
private ECNamedCurve namedCurve
public static AlgorithmParameters getAlgorithmParameters(ECParameterSpec spec) throws InvalidKeyException
protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
protected void engineInit(byte[] params)
throws IOException
engineInit 在类中 AlgorithmParametersSpiIOExceptionprotected void engineInit(byte[] params,
String decodingMethod)
throws IOException
engineInit 在类中 AlgorithmParametersSpiIOExceptionprotected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> spec) throws InvalidParameterSpecException
protected byte[] engineGetEncoded()
throws IOException
engineGetEncoded 在类中 AlgorithmParametersSpiIOExceptionprotected byte[] engineGetEncoded(String encodingMethod) throws IOException
engineGetEncoded 在类中 AlgorithmParametersSpiIOExceptionprotected String engineToString()
engineToString 在类中 AlgorithmParametersSpiCopyright © 2024. All rights reserved.