public class DHBasicAgreement extends Object implements BasicAgreement
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 and Description |
---|
DHBasicAgreement() |
Modifier and Type | Method and Description |
---|---|
BigInteger |
calculateAgreement(CipherParameters pubKey)
given a short term public key from a given party calculate the next
message in the agreement sequence.
|
void |
init(CipherParameters param)
initialise the agreement engine.
|
public void init(CipherParameters param)
BasicAgreement
init
in interface BasicAgreement
public BigInteger calculateAgreement(CipherParameters pubKey)
calculateAgreement
in interface BasicAgreement
Copyright © 2015. All rights reserved.