Package org.bouncycastle.crypto.internal
Interface BasicAgreement
public interface BasicAgreement
The basic interface that basic Diffie-Hellman implementations
conforms to.
-
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 param) initialise the agreement engine.
-
Method Details
-
init
initialise the agreement engine. -
getFieldSize
int getFieldSize()return the field size for the agreement algorithm in bytes. -
calculateAgreement
given a public key from a given party calculate the next message in the agreement sequence.
-