Class AsymmetricECGOST3410PublicKey
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key<ECDomainParameters>
-
- org.bouncycastle.crypto.asymmetric.AsymmetricECGOST3410PublicKey
-
- All Implemented Interfaces:
AsymmetricKey
,AsymmetricPublicKey
,Key
public final class AsymmetricECGOST3410PublicKey extends AsymmetricGOST3410Key<ECDomainParameters> implements AsymmetricPublicKey
Class for keys for GOST R 34.10-2001 (ECGOST) public keys.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key
domainParameters
-
-
Constructor Summary
Constructors Constructor Description AsymmetricECGOST3410PublicKey(Algorithm algorithm, byte[] enc)
AsymmetricECGOST3410PublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)
AsymmetricECGOST3410PublicKey(Algorithm algorithm, GOST3410Parameters<ECDomainParameters> params, ECPoint w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Return true if o is an equivalent key to this.byte[]
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.ECPoint
getW()
int
hashCode()
Return the hashCode for the key.-
Methods inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key
checkApprovedOnlyModeStatus, getAlgorithm, getParameters, zeroize
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.Key
getAlgorithm
-
-
-
-
Constructor Detail
-
AsymmetricECGOST3410PublicKey
public AsymmetricECGOST3410PublicKey(Algorithm algorithm, GOST3410Parameters<ECDomainParameters> params, ECPoint w)
-
AsymmetricECGOST3410PublicKey
public AsymmetricECGOST3410PublicKey(Algorithm algorithm, byte[] enc)
-
AsymmetricECGOST3410PublicKey
public AsymmetricECGOST3410PublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)
-
-
Method Detail
-
getW
public ECPoint getW()
-
getEncoded
public byte[] getEncoded()
Description copied from interface:AsymmetricKey
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.- Specified by:
getEncoded
in interfaceAsymmetricKey
- Returns:
- an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:Key
Return true if o is an equivalent key to this.
-
-