Interface TlsAgreement
- Namespace
- Org.BouncyCastle.Tls.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
Base interface for ephemeral key agreement calculator.
public interface TlsAgreement
Methods
CalculateSecret()
Calculate the agreed secret based on the calculator's current state.
TlsSecret CalculateSecret()
Returns
- TlsSecret
the calculated secret.
Exceptions
GenerateEphemeral()
Generate an ephemeral key pair, returning the encoding of the public key.
byte[] GenerateEphemeral()
Returns
- byte[]
a byte encoding of the public key.
Exceptions
ReceivePeerValue(byte[])
Pass in the public key for the peer to the agreement calculator.
void ReceivePeerValue(byte[] peerValue)
Parameters
peerValuebyte[]a byte encoding of the peer public key.