<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Tls.Crypto.Impl.BC.BcX25519

public class BcX25519 : TlsAgreement
Support class for X25519 using the BC light-weight library.
namespace Org.BouncyCastle.Tls.Crypto.Impl.BC { public class BcX25519 : TlsAgreement { protected readonly BcTlsCrypto m_crypto; protected readonly byte[] m_privateKey; protected readonly byte[] m_peerPublicKey; public BcX25519(BcTlsCrypto crypto); public virtual byte[] GenerateEphemeral(); public virtual void ReceivePeerValue(byte[] peerValue); public virtual TlsSecret CalculateSecret(); } }