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

Org.BouncyCastle.Tls.Crypto.Impl.BC.BcTlsSecret

BC light-weight support class for handling TLS secrets and deriving key material and other secrets from them.
namespace Org.BouncyCastle.Tls.Crypto.Impl.BC { public class BcTlsSecret : AbstractTlsSecret { protected readonly BcTlsCrypto m_crypto; public static BcTlsSecret Convert(BcTlsCrypto crypto, TlsSecret secret); public BcTlsSecret(BcTlsCrypto crypto, byte[] data); protected virtual void HmacHash(int cryptoHashAlgorithm, byte[] secret, int secretOff, int secretLen, byte[] seed, byte[] output); protected virtual byte[] Prf(int prfAlgorithm, string label, byte[] seed, int length); protected virtual byte[] Prf_Ssl(byte[] seed, int length); protected virtual byte[] Prf_1_0(byte[] labelSeed, int length); protected virtual byte[] Prf_1_2(int prfAlgorithm, byte[] labelSeed, int length); protected virtual void UpdateMac(IMac mac); } }