Top Description Fields Constructors Methods
org.bouncycastle.crypto.asymmetric

public final Class AsymmetricGOST3410PublicKey

extends AsymmetricGOST3410Key<GOST3410DomainParameters>
implements AsymmetricPublicKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricPublicKey, org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1OctetString, .DEROctetString, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, .GOST3410PublicKeyAlgParameters, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.crypto.Algorithm, .AsymmetricPublicKey

Class for keys for GOST R 34.10-1994 public keys.

Field Summary

Modifier and TypeField and Description
private BigInteger
y

Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key:
domainParameters

Constructor Summary

AccessConstructor and Description
public
public
AsymmetricGOST3410PublicKey(Algorithm algorithm, byte[] enc)

public

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
object to compare to.
o
)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Key.equals.

Return true if o is an equivalent key to this.
public byte[]
getEncoded()

Implements org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
public BigInteger
getY()

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

Return the hashCode for the key.
private static BigInteger
Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key:
checkApprovedOnlyModeStatusgetAlgorithmgetParameterszeroize

Field Detail

yback to summary
private BigInteger y

Constructor Detail

AsymmetricGOST3410PublicKeyback to summary
public AsymmetricGOST3410PublicKey(Algorithm algorithm, GOST3410Parameters<GOST3410DomainParameters> params, BigInteger y)
AsymmetricGOST3410PublicKeyback to summary
public AsymmetricGOST3410PublicKey(Algorithm algorithm, byte[] enc)
AsymmetricGOST3410PublicKeyback to summary
public AsymmetricGOST3410PublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Key.equals.

Doc from org.bouncycastle.crypto.Key.equals.

Return true if o is an equivalent key to this.

Parameters
o:Object

object to compare to.

Returns:boolean

true if o is the same or equivalent key, false otherwise.

Annotations
@Override
getEncodedback to summary
public byte[] getEncoded()

Implements org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Doc from org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

Returns:byte[]

an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

getYback to summary
public BigInteger getY()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

Doc from org.bouncycastle.crypto.Key.hashCode.

Return the hashCode for the key.

Returns:int

the key's hashCode.

Annotations
@Override
parsePublicKeyback to summary
private static BigInteger parsePublicKey(SubjectPublicKeyInfo publicKeyInfo)