Class BCECGOST3410_2012PublicKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.ecgost12.BCECGOST3410_2012PublicKey
- All Implemented Interfaces:
Serializable
,ECKey
,ECPublicKey
,Key
,PublicKey
,ECKey
,ECPointEncoder
,ECPublicKey
public class BCECGOST3410_2012PublicKey
extends Object
implements ECPublicKey, ECPublicKey, ECPointEncoder
Represent two kind of GOST34.10 2012 PublicKeys: with 256 and 512 size
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBCECGOST3410_2012PublicKey
(String algorithm, ECPublicKeyParameters params) BCECGOST3410_2012PublicKey
(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec) BCECGOST3410_2012PublicKey
(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec) BCECGOST3410_2012PublicKey
(ECPublicKeySpec spec, ProviderConfiguration configuration) -
Method Summary
-
Constructor Details
-
BCECGOST3410_2012PublicKey
-
BCECGOST3410_2012PublicKey
-
BCECGOST3410_2012PublicKey
-
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec) -
BCECGOST3410_2012PublicKey
public BCECGOST3410_2012PublicKey(String algorithm, ECPublicKeyParameters params, ECParameterSpec spec) -
BCECGOST3410_2012PublicKey
-
BCECGOST3410_2012PublicKey
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
getParams
-
getParameters
Description copied from interface:ECKey
return a parameter specification representing the EC domain parameters for the key.- Specified by:
getParameters
in interfaceECKey
-
getW
- Specified by:
getW
in interfaceECPublicKey
-
getQ
Description copied from interface:ECPublicKey
return the public point Q- Specified by:
getQ
in interfaceECPublicKey
-
toString
-
setPointFormat
Description copied from interface:ECPointEncoder
Set the formatting for encoding of points. If the String "UNCOMPRESSED" is passed in point compression will not be used. If the String "COMPRESSED" is passed point compression will be used. The default is "UNCOMPRESSED".- Specified by:
setPointFormat
in interfaceECPointEncoder
- Parameters:
style
- the style to use.
-
equals
-
hashCode
public int hashCode() -
getGostParams
-