Top Description Fields Constructors Methods
org.bouncycastle.crypto.agreement

public Class XDHBasicAgreement

extends Object
implements BasicAgreement
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.BasicAgreement
Imports
java.math.BigInteger, org.bouncycastle.crypto.BasicAgreement, .CipherParameters, .RawAgreement, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .X25519PrivateKeyParameters, .X448PrivateKeyParameters

Key agreement using X25519 or X448. Same as Weierstrauss curve based ECDH, except this uses the U-coordinate while ECDH uses the X-coordinate.

Field Summary

Modifier and TypeField and Description
private RawAgreement
private int
private AsymmetricKeyParameter

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.
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

agreementback to summary
private RawAgreement agreement
fieldSizeback to summary
private int fieldSize
keyback to summary
private AsymmetricKeyParameter key

Constructor Detail

XDHBasicAgreementback to summary
public XDHBasicAgreement()

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.

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.