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

public abstract Class AsymmetricDHKey

extends Object
implements AsymmetricKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Known Direct Subclasses
org.bouncycastle.crypto.asymmetric.AsymmetricDHPrivateKey, org.bouncycastle.crypto.asymmetric.AsymmetricDHPublicKey
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1ObjectIdentifier, org.bouncycastle.asn1.oiw.ElGamalParameter, .OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.DHParameter, .PKCSObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.asn1.x9.DomainParameters, .X9ObjectIdentifiers, org.bouncycastle.crypto.Algorithm, .AsymmetricKey, .CryptoServicesRegistrar, org.bouncycastle.crypto.fips.FipsUnapprovedOperationError

Base class for Diffie-Hellman keys.

Field Summary

Modifier and TypeField and Description
protected Algorithm
protected final boolean
protected DHDomainParameters

Constructor Summary

AccessConstructor and Description
pack-priv
AsymmetricDHKey(Algorithm algorithm, DHDomainParameters domainParameters)

pack-priv
AsymmetricDHKey(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Summary

Modifier and TypeMethod and Description
protected final void
private static DHDomainParameters
public Algorithm

Returns:

the key's algorithm.
getAlgorithm
()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this Diffie-Hellman key is for.
public DHDomainParameters

Returns:

the Diffie-Hellman domain parameters for this key.
getDomainParameters
()

Return the Diffie-Hellman domain parameters associated with this key.

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
protected Algorithm algorithm
approvedModeOnlyback to summary
protected final boolean approvedModeOnly
domainParametersback to summary
protected DHDomainParameters domainParameters

Constructor Detail

AsymmetricDHKeyback to summary
pack-priv AsymmetricDHKey(Algorithm algorithm, DHDomainParameters domainParameters)
AsymmetricDHKeyback to summary
pack-priv AsymmetricDHKey(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Detail

checkApprovedOnlyModeStatusback to summary
protected final void checkApprovedOnlyModeStatus()
decodeDomainParametersback to summary
private static DHDomainParameters decodeDomainParameters(AlgorithmIdentifier algorithmIdentifier)
getAlgorithmback to summary
public Algorithm getAlgorithm()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this Diffie-Hellman key is for.

Returns:Algorithm

the key's algorithm.

getDomainParametersback to summary
public DHDomainParameters getDomainParameters()

Return the Diffie-Hellman domain parameters associated with this key.

Returns:DHDomainParameters

the Diffie-Hellman domain parameters for this key.

zeroizeback to summary
protected void zeroize()