public class TlsHybridAgreement extends java.lang.Object implements TlsAgreement
| Constructor and Description |
|---|
TlsHybridAgreement(TlsCrypto crypto,
TlsAgreement firstAgreement,
TlsAgreement secondAgreement,
int peerValueSplit) |
| Modifier and Type | Method and Description |
|---|---|
TlsSecret |
calculateSecret()
Calculate the agreed secret based on the calculator's current state.
|
byte[] |
generateEphemeral()
Generate an ephemeral key pair, returning the encoding of the public key.
|
void |
receivePeerValue(byte[] peerValue)
Pass in the public key for the peer to the agreement calculator.
|
public TlsHybridAgreement(TlsCrypto crypto, TlsAgreement firstAgreement, TlsAgreement secondAgreement, int peerValueSplit)
public byte[] generateEphemeral()
throws java.io.IOException
TlsAgreementgenerateEphemeral in interface TlsAgreementjava.io.IOException - in case of error.public void receivePeerValue(byte[] peerValue)
throws java.io.IOException
TlsAgreementreceivePeerValue in interface TlsAgreementpeerValue - a byte encoding of the peer public key.java.io.IOException - in case of error.public TlsSecret calculateSecret() throws java.io.IOException
TlsAgreementcalculateSecret in interface TlsAgreementjava.io.IOException - in case of error.