Top Fields Constructors Methods
org.bouncycastle.crypto.agreement

public Class ECDHCStagedAgreement

extends Object
implements StagedAgreement
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.StagedAgreement, org.bouncycastle.crypto.BasicAgreement
Imports
java.math.BigInteger, org.bouncycastle.crypto.CipherParameters, .CryptoServicesRegistrar, .StagedAgreement, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .ECDomainParameters, .ECPrivateKeyParameters, .ECPublicKeyParameters, org.bouncycastle.math.ec.ECAlgorithms, .ECPoint

Field Summary

Modifier and TypeField and Description
pack-priv ECPrivateKeyParameters

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BigInteger
calculateAgreement(CipherParameters pubKey)

Implements org.bouncycastle.crypto.BasicAgreement.calculateAgreement.

given a public key from a given party calculate the next message in the agreement sequence.

private ECPoint
public AsymmetricKeyParameter
public int
getFieldSize()

Implements org.bouncycastle.crypto.BasicAgreement.getFieldSize.

return the field size for the agreement algorithm in bytes.

public void
init(CipherParameters key)

Implements org.bouncycastle.crypto.BasicAgreement.init.

initialise the agreement engine.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
pack-priv ECPrivateKeyParameters key

Constructor Detail

ECDHCStagedAgreementback to summary
public ECDHCStagedAgreement()

Method Detail

calculateAgreementback to summary
public BigInteger calculateAgreement(CipherParameters pubKey)

Implements org.bouncycastle.crypto.BasicAgreement.calculateAgreement.

Doc from org.bouncycastle.crypto.BasicAgreement.calculateAgreement.

given a public key from a given party calculate the next message in the agreement sequence.

calculateNextPointback to summary
private ECPoint calculateNextPoint(ECPublicKeyParameters pubKey)
calculateStageback to summary
public AsymmetricKeyParameter calculateStage(CipherParameters pubKey)

Implements org.bouncycastle.crypto.StagedAgreement.calculateStage.

getFieldSizeback to summary
public int getFieldSize()

Implements org.bouncycastle.crypto.BasicAgreement.getFieldSize.

Doc from org.bouncycastle.crypto.BasicAgreement.getFieldSize.

return the field size for the agreement algorithm in bytes.

initback to summary
public void init(CipherParameters key)

Implements org.bouncycastle.crypto.BasicAgreement.init.

Doc from org.bouncycastle.crypto.BasicAgreement.init.

initialise the agreement engine.