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 |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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 | |
| DhBasicAgreement | back to summary |
|---|---|
| pack-priv 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. | |