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.
| Modifier and Type | Field and Description |
|---|---|
| private DHParameters | |
| private DHPrivateKeyParameters | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BigInteger | calculateAgreement(CipherParameters pubKey)
Implements org. |
| public int | getFieldSize()
Implements org. |
| public void | init(CipherParameters param)
Implements org. |
| dhParams | back to summary |
|---|---|
| private DHParameters dhParams | |
| key | back to summary |
|---|---|
| private DHPrivateKeyParameters key | |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| DHBasicAgreement | back to summary |
|---|---|
| public DHBasicAgreement() | |
| calculateAgreement | back to summary |
|---|---|
| public BigInteger calculateAgreement(CipherParameters pubKey) Implements org. given a short term public key from a given party calculate the next message in the agreement sequence. | |
| getFieldSize | back to summary |
|---|---|
| public int getFieldSize() Implements org. Doc from org. return the field size for the agreement algorithm in bytes. | |
| init | back to summary |
|---|---|
| public void init(CipherParameters param) Implements org. Doc from org. initialise the agreement engine. | |