01: package org.bouncycastle.crypto;
02:
03: import java.math.BigInteger;
04:
05: /**
06: * The basic interface that basic Diffie-Hellman implementations
07: * conforms to.
08: */
09: public interface BasicAgreement {
10: /**
11: * initialise the agreement engine.
12: */
13: public void init(CipherParameters param);
14:
15: /**
16: * given a public key from a given party calculate the next
17: * message in the agreement sequence.
18: */
19: public BigInteger calculateAgreement(CipherParameters pubKey);
20: }
|