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

Pkcs1Encoding

public const string StrictLengthEnabledProperty = "Org.BouncyCastle.Pkcs1.Strict"

public static bool StrictLengthEnabled { get; set; }

public string AlgorithmName { get; }

public Pkcs1Encoding(IAsymmetricBlockCipher cipher, int pLen)

public Pkcs1Encoding(IAsymmetricBlockCipher cipher, byte[] fallback)

public int GetInputBlockSize()

public int GetOutputBlockSize()

public void Init(bool forEncryption, ICipherParameters parameters)

public byte[] ProcessBlock(byte[] input, int inOff, int length)