Class XDHBasicAgreement
java.lang.Object
org.bouncycastle.crypto.agreement.XDHBasicAgreement
- All Implemented Interfaces:
BasicAgreement
Key agreement using X25519 or X448. Same as Weierstrauss curve based ECDH,
except this uses the U-coordinate while ECDH uses the X-coordinate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateAgreement(CipherParameters pubKey) given a public key from a given party calculate the next message in the agreement sequence.intreturn the field size for the agreement algorithm in bytes.voidinit(CipherParameters key) initialise the agreement engine.
-
Constructor Details
-
XDHBasicAgreement
public XDHBasicAgreement()
-
-
Method Details
-
init
Description copied from interface:BasicAgreementinitialise the agreement engine.- Specified by:
initin interfaceBasicAgreement
-
getFieldSize
public int getFieldSize()Description copied from interface:BasicAgreementreturn the field size for the agreement algorithm in bytes.- Specified by:
getFieldSizein interfaceBasicAgreement
-
calculateAgreement
Description copied from interface:BasicAgreementgiven a public key from a given party calculate the next message in the agreement sequence.- Specified by:
calculateAgreementin interfaceBasicAgreement
-