public class

JCEDHKeyAgreement

extends KeyAgreementSpi
java.lang.Object
   ↳ 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.

Summary

Public Constructors
JCEDHKeyAgreement()
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)
[Expand]
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)