public class PACEGMWithECDHAgreement extends Object
Constructor and Description |
---|
PACEGMWithECDHAgreement() |
Modifier and Type | Method and Description |
---|---|
ECPoint |
doPhase(PublicKey publicKey)
Performs a key agreement protocol.
|
void |
init(PrivateKey privateKey)
Initializes the key agreement implementation.
|
public void init(PrivateKey privateKey) throws InvalidKeyException
privateKey
- this party's private keyInvalidKeyException
- if the private key is not an instance of ECPrivateKey
public ECPoint doPhase(PublicKey publicKey) throws InvalidKeyException, IllegalStateException
publicKey
- the other party's public keyInvalidKeyException
- if the provided key is not an instance of ECPublicKey
IllegalStateException
- if this key agreement has not been initializedCopyright © 2021. All rights reserved.