org.bouncycastle.jce.provider

Class JCEECDHKeyAgreement

public class JCEECDHKeyAgreement extends KeyAgreementSpi

Diffie-Hellman key agreement using elliptic curve keys, ala IEEE P1363 both the simple one, and the simple one with cofactors are supported.
Nested Class Summary
static classJCEECDHKeyAgreement.DH
static classJCEECDHKeyAgreement.DHC
static classJCEECDHKeyAgreement.DHwithSHA1KDF
Constructor Summary
protected JCEECDHKeyAgreement(BasicAgreement agreement)
protected JCEECDHKeyAgreement(BasicAgreement agreement, DerivationFunction kdf)
Method Summary
protected KeyengineDoPhase(Key key, boolean lastPhase)
protected byte[]engineGenerateSecret()
protected intengineGenerateSecret(byte[] sharedSecret, int offset)
protected SecretKeyengineGenerateSecret(String algorithm)
protected voidengineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
protected voidengineInit(Key key, SecureRandom random)

Constructor Detail

JCEECDHKeyAgreement

protected JCEECDHKeyAgreement(BasicAgreement agreement)

JCEECDHKeyAgreement

protected JCEECDHKeyAgreement(BasicAgreement agreement, DerivationFunction kdf)

Method Detail

engineDoPhase

protected Key engineDoPhase(Key key, boolean lastPhase)

engineGenerateSecret

protected byte[] engineGenerateSecret()

engineGenerateSecret

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

engineGenerateSecret

protected SecretKey engineGenerateSecret(String algorithm)

engineInit

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

engineInit

protected void engineInit(Key key, SecureRandom random)