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

public final Class AsymmetricDSTU4145PublicKey

extends AsymmetricDSTU4145Key
implements AsymmetricPublicKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricPublicKey, org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1Encodable, .ASN1OctetString, .DEROctetString, org.bouncycastle.asn1.ua.DSTU4145ECBinary, .DSTU4145Params, .DSTU4145PointEncoder, .UAObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.crypto.Algorithm, .AsymmetricPublicKey, org.bouncycastle.math.ec.ECCurve, .ECPoint

Class for DSTU-4145 public keys.

Field Summary

Modifier and TypeField and Description
private ECPoint
w

Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145Key:
dstu4145Identifierparameters

Constructor Summary

AccessConstructor and Description
public
public
AsymmetricDSTU4145PublicKey(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 ECPoint
getW()

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

Return the hashCode for the key.
private static ECPoint
parsePublicKey(DSTU4145Parameters dstu4145Parameters, SubjectPublicKeyInfo publicKeyInfo)

Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145Key:
checkApprovedOnlyModeStatusgetAlgorithmgetParametersreverseByteszeroize

Field Detail

wback to summary
private ECPoint w

Constructor Detail

AsymmetricDSTU4145PublicKeyback to summary
public AsymmetricDSTU4145PublicKey(Algorithm algorithm, DSTU4145Parameters params, ECPoint w)
AsymmetricDSTU4145PublicKeyback to summary
public AsymmetricDSTU4145PublicKey(Algorithm algorithm, byte[] enc)
AsymmetricDSTU4145PublicKeyback to summary
public AsymmetricDSTU4145PublicKey(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.

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 static ECPoint parsePublicKey(DSTU4145Parameters dstu4145Parameters, SubjectPublicKeyInfo publicKeyInfo)