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

TlsEncryptor

public interface TlsEncryptor
Base interface for an encryptor.
byte[] Encrypt(byte[] input, int inOff, int length)

Encrypt data from the passed in input array.