public class

KeyAgreement

extends KeyAgreementSpi
java.lang.Object
   ↳ javax.crypto.KeyAgreementSpi
     ↳ org.bouncycastle.jce.provider.asymmetric.ec.KeyAgreement
Known Direct Subclasses

Class Overview

Diffie-Hellman key agreement using elliptic curve keys, ala IEEE P1363 both the simple one, and the simple one with cofactors are supported. Also, MQV key agreement per SEC-1

Summary

Nested Classes
class KeyAgreement.DH  
class KeyAgreement.DHC  
class KeyAgreement.DHwithSHA1KDF  
class KeyAgreement.MQV  
class KeyAgreement.MQVwithSHA1KDF  
Protected Constructors
KeyAgreement(String kaAlgorithm, BasicAgreement agreement, DerivationFunction kdf)
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

Protected Constructors

protected KeyAgreement (String kaAlgorithm, BasicAgreement agreement, DerivationFunction kdf)

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)