|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.agreement.DHBasicAgreement
public class DHBasicAgreement
a Diffie-Hellman key agreement class.
note: This is only the basic algorithm, it doesn't take advantage of long term public keys if they are available. See the DHAgreement class for a "better" implementation.
| Constructor Summary | |
|---|---|
DHBasicAgreement()
|
|
| Method Summary | |
|---|---|
java.math.BigInteger |
calculateAgreement(CipherParameters pubKey)
given a short term public key from a given party calculate the next message in the agreement sequence. |
int |
getFieldSize()
return the field size for the agreement algorithm in bytes. |
void |
init(CipherParameters param)
initialise the agreement engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DHBasicAgreement()
| Method Detail |
|---|
public void init(CipherParameters param)
BasicAgreement
init in interface BasicAgreementpublic int getFieldSize()
BasicAgreement
getFieldSize in interface BasicAgreementpublic java.math.BigInteger calculateAgreement(CipherParameters pubKey)
calculateAgreement in interface BasicAgreement
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||