<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crypto.Parameters.X25519PrivateKeyParameters

X25519 private key (RFC 7748). Holds the 32-byte clamped scalar used in Curve25519 Diffie-Hellman.
namespace Org.BouncyCastle.Crypto.Parameters { public sealed class X25519PrivateKeyParameters : AsymmetricKeyParameter { public static readonly int KeySize; public static readonly int SecretSize; public X25519PrivateKeyParameters(SecureRandom random); public X25519PrivateKeyParameters(byte[] buf); public X25519PrivateKeyParameters(byte[] buf, int off); public X25519PrivateKeyParameters(Stream input); public void Encode(byte[] buf, int off); public byte[] GetEncoded(); public X25519PublicKeyParameters GeneratePublicKey(); public void GenerateSecret(X25519PublicKeyParameters publicKey, byte[] buf, int off); } }