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

BcTlsSecret

BC light-weight support class for handling TLS secrets and deriving key material and other secrets from them.
protected readonly BcTlsCrypto m_crypto

public BcTlsSecret(BcTlsCrypto crypto, byte[] data)

public static BcTlsSecret Convert(BcTlsCrypto crypto, TlsSecret secret)

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_1_0(byte[] labelSeed, int length)

protected virtual byte[] Prf_1_2(int prfAlgorithm, byte[] labelSeed, int length)

protected virtual byte[] Prf_Ssl(byte[] seed, int length)

protected virtual void UpdateMac(IMac mac)