Class AsymmetricGOST3410PublicKey
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key<GOST3410DomainParameters>
-
- org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410PublicKey
-
- All Implemented Interfaces:
AsymmetricKey
,AsymmetricPublicKey
,Key
public final class AsymmetricGOST3410PublicKey extends AsymmetricGOST3410Key<GOST3410DomainParameters> implements AsymmetricPublicKey
Class for keys for GOST R 34.10-1994 public keys.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key
domainParameters
-
-
Constructor Summary
Constructors Constructor Description AsymmetricGOST3410PublicKey(Algorithm algorithm, byte[] enc)
AsymmetricGOST3410PublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)
AsymmetricGOST3410PublicKey(Algorithm algorithm, GOST3410Parameters<GOST3410DomainParameters> params, java.math.BigInteger y)
-
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.java.math.BigInteger
getY()
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
-
AsymmetricGOST3410PublicKey
public AsymmetricGOST3410PublicKey(Algorithm algorithm, GOST3410Parameters<GOST3410DomainParameters> params, java.math.BigInteger y)
-
AsymmetricGOST3410PublicKey
public AsymmetricGOST3410PublicKey(Algorithm algorithm, byte[] enc)
-
AsymmetricGOST3410PublicKey
public AsymmetricGOST3410PublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)
-
-
Method Detail
-
getY
public java.math.BigInteger getY()
-
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.
-
-