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

BcDefaultTlsCredentialedDecryptor

Credentialed class decrypting RSA encrypted secrets sent from a peer for our end of the TLS connection using the BC light-weight API.
protected readonly Certificate m_certificate

protected readonly BcTlsCrypto m_crypto

public virtual Certificate Certificate { get; }

public virtual TlsSecret Decrypt(TlsCryptoParameters cryptoParams, byte[] ciphertext)

protected virtual TlsSecret SafeDecryptPreMasterSecret(TlsCryptoParameters cryptoParams, RsaKeyParameters rsaServerPrivateKey, byte[] encryptedPreMasterSecret)