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

public abstract Class AsymmetricDSTU4145Key

extends Object
implements AsymmetricKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Known Direct Subclasses
org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145PrivateKey, org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145PublicKey
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.ua.DSTU4145BinaryField, .DSTU4145ECBinary, .DSTU4145Params, .DSTU4145PointEncoder, .UAObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.crypto.Algorithm, .AsymmetricKey, .CryptoServicesRegistrar, org.bouncycastle.crypto.fips.FipsUnapprovedOperationError, org.bouncycastle.math.ec.ECConstants, .ECCurve

Base class for DSTU-4145 keys.

Field Summary

Modifier and TypeField and Description
private Algorithm
protected final AlgorithmIdentifier
protected DSTU4145Parameters

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
AsymmetricDSTU4145Key(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Summary

Modifier and TypeMethod and Description
protected final void
private static DSTU4145Parameters
private static BigInteger
public Algorithm

Returns:

the key's algorithm.
getAlgorithm
()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this DSTU4145 key is for.
public DSTU4145Parameters

Returns:

the DSTU4145 domain parameters.
getParameters
()

Return the domain parameters for this DSTU4145 key.

protected static void
reverseBytes(byte[] bytes)

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
private Algorithm algorithm
dstu4145Identifierback to summary
protected final AlgorithmIdentifier dstu4145Identifier
parametersback to summary
protected DSTU4145Parameters parameters

Constructor Detail

AsymmetricDSTU4145Keyback to summary
pack-priv AsymmetricDSTU4145Key(Algorithm algorithm, DSTU4145Parameters parameters)
AsymmetricDSTU4145Keyback to summary
pack-priv AsymmetricDSTU4145Key(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Detail

checkApprovedOnlyModeStatusback to summary
protected final void checkApprovedOnlyModeStatus()
decodeDomainParametersback to summary
private static DSTU4145Parameters decodeDomainParameters(AlgorithmIdentifier algorithmIdentifier)
deriveDSTUCofactorback to summary
private static BigInteger deriveDSTUCofactor(int m, BigInteger order)
getAlgorithmback to summary
public Algorithm getAlgorithm()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this DSTU4145 key is for.

Returns:Algorithm

the key's algorithm.

getParametersback to summary
public DSTU4145Parameters getParameters()

Return the domain parameters for this DSTU4145 key.

Returns:DSTU4145Parameters

the DSTU4145 domain parameters.

reverseBytesback to summary
protected static void reverseBytes(byte[] bytes)
zeroizeback to summary
protected void zeroize()