public class


extends KeyAgreementSpi
   ↳ javax.crypto.KeyAgreementSpi
     ↳ org.bouncycastle.jce.provider.JCEDHKeyAgreement

Class Overview

Diffie-Hellman key agreement. There's actually a better way of doing this if you are using long term public keys, see the light-weight version for details.


Public Constructors
Protected Methods
Key engineDoPhase(Key key, boolean lastPhase)
int engineGenerateSecret(byte[] sharedSecret, int offset)
byte[] engineGenerateSecret()
SecretKey engineGenerateSecret(String algorithm)
void engineInit(Key key, SecureRandom random)
void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
Inherited Methods
From class javax.crypto.KeyAgreementSpi
From class java.lang.Object

Public Constructors

public JCEDHKeyAgreement ()

Protected Methods

protected Key engineDoPhase (Key key, boolean lastPhase)

protected int engineGenerateSecret (byte[] sharedSecret, int offset)

protected byte[] engineGenerateSecret ()

protected SecretKey engineGenerateSecret (String algorithm)

protected void engineInit (Key key, SecureRandom random)

protected void engineInit (Key key, AlgorithmParameterSpec params, SecureRandom random)