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

Org.BouncyCastle.Crypto.Tls.TlsRsaKeyExchange

public static class TlsRsaKeyExchange
namespace Org.BouncyCastle.Crypto.Tls { public static class TlsRsaKeyExchange { public const int PreMasterSecretLength = 48; public static byte[] DecryptPreMasterSecret(byte[] buf, int off, int len, RsaKeyParameters privateKey, int protocolVersion, SecureRandom secureRandom); public static int GetInputLimit(RsaKeyParameters privateKey); } }