public class ECDHCBasicAgreement extends java.lang.Object implements BasicAgreement
Note: As stated P1363 compatibility mode with ECDH can be preset, and in this case the implementation doesn't have a ECDH compatibility mode (if you want that just use ECDHBasicAgreement and note they both implement BasicAgreement!).
Constructor and Description |
---|
ECDHCBasicAgreement() |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
calculateAgreement(CipherParameters pubKey)
given a 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 key)
initialise the agreement engine.
|
public void init(CipherParameters key)
BasicAgreement
init
in interface BasicAgreement
public int getFieldSize()
BasicAgreement
getFieldSize
in interface BasicAgreement
public java.math.BigInteger calculateAgreement(CipherParameters pubKey)
BasicAgreement
calculateAgreement
in interface BasicAgreement