Table of Contents

Class BcTlsMLKem

Namespace
Org.BouncyCastle.Tls.Crypto.Impl.BC
Assembly
BouncyCastle.Cryptography.dll
public class BcTlsMLKem : TlsAgreement
Inheritance
BcTlsMLKem
Implements
Inherited Members

Constructors

BcTlsMLKem(BcTlsMLKemDomain)

public BcTlsMLKem(BcTlsMLKemDomain domain)

Parameters

domain BcTlsMLKemDomain

Fields

m_domain

protected readonly BcTlsMLKemDomain m_domain

Field Value

BcTlsMLKemDomain

m_privateKey

protected MLKemPrivateKeyParameters m_privateKey

Field Value

MLKemPrivateKeyParameters

m_publicKey

protected MLKemPublicKeyParameters m_publicKey

Field Value

MLKemPublicKeyParameters

m_secret

protected TlsSecret m_secret

Field Value

TlsSecret

Methods

CalculateSecret()

Calculate the agreed secret based on the calculator's current state.

public virtual TlsSecret CalculateSecret()

Returns

TlsSecret

the calculated secret.

Exceptions

IOException

GenerateEphemeral()

Generate an ephemeral key pair, returning the encoding of the public key.

public virtual 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.

public virtual void ReceivePeerValue(byte[] peerValue)

Parameters

peerValue byte[]

a byte encoding of the peer public key.

Exceptions

IOException