Class AsymmetricDSTU4145PublicKey
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145Key
-
- org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145PublicKey
-
- All Implemented Interfaces:
AsymmetricKey
,AsymmetricPublicKey
,Key
public final class AsymmetricDSTU4145PublicKey extends AsymmetricDSTU4145Key implements AsymmetricPublicKey
Class for DSTU-4145 public keys.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145Key
dstu4145Identifier, parameters
-
-
Constructor Summary
Constructors Constructor Description AsymmetricDSTU4145PublicKey(Algorithm algorithm, byte[] enc)
AsymmetricDSTU4145PublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)
AsymmetricDSTU4145PublicKey(Algorithm algorithm, DSTU4145Parameters 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.AsymmetricDSTU4145Key
checkApprovedOnlyModeStatus, getAlgorithm, getParameters, reverseBytes, 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
-
AsymmetricDSTU4145PublicKey
public AsymmetricDSTU4145PublicKey(Algorithm algorithm, DSTU4145Parameters params, ECPoint w)
-
AsymmetricDSTU4145PublicKey
public AsymmetricDSTU4145PublicKey(Algorithm algorithm, byte[] enc)
-
AsymmetricDSTU4145PublicKey
public AsymmetricDSTU4145PublicKey(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.
-
-