Table of Contents

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

IOException

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

IOException

ReceivePeerValue(byte[])

Pass in the public key for the peer to the agreement calculator.

void ReceivePeerValue(byte[] peerValue)

Parameters

peerValue byte[]

a byte encoding of the peer public key.

Exceptions

IOException