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

public final Class AsymmetricECGOST3410PublicKey

extends AsymmetricGOST3410Key<ECDomainParameters>
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, org.bouncycastle.math.ec.ECPoint

Class for keys for GOST R 34.10-2001 (ECGOST) public keys.

Field Summary

Modifier and TypeField and Description
private ECPoint
w

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

Constructor Summary

AccessConstructor and Description
public
public
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.
private void
extractBytes(byte[] encKey, int offSet, BigInteger bI)

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 ECPoint
getW()

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

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

Field Detail

wback to summary
private ECPoint w

Constructor Detail

AsymmetricECGOST3410PublicKeyback to summary
public AsymmetricECGOST3410PublicKey(Algorithm algorithm, GOST3410Parameters<ECDomainParameters> params, ECPoint w)
AsymmetricECGOST3410PublicKeyback to summary
public AsymmetricECGOST3410PublicKey(Algorithm algorithm, byte[] enc)
AsymmetricECGOST3410PublicKeyback to summary
public AsymmetricECGOST3410PublicKey(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
extractBytesback to summary
private void extractBytes(byte[] encKey, int offSet, BigInteger bI)
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.

getWback to summary
public ECPoint getW()
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 ECPoint parsePublicKey(SubjectPublicKeyInfo publicKeyInfo)