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

Org.BouncyCastle.Crypto.Encodings.Pkcs1Encoding

namespace Org.BouncyCastle.Crypto.Encodings { public class Pkcs1Encoding : IAsymmetricBlockCipher { public const string StrictLengthEnabledProperty = "Org.BouncyCastle.Pkcs1.Strict"; public static bool StrictLengthEnabled { get; set; } public string AlgorithmName { get; } public IAsymmetricBlockCipher UnderlyingCipher { get; } public Pkcs1Encoding(IAsymmetricBlockCipher cipher); public Pkcs1Encoding(IAsymmetricBlockCipher cipher, int pLen); public Pkcs1Encoding(IAsymmetricBlockCipher cipher, byte[] fallback); public void Init(bool forEncryption, ICipherParameters parameters); public int GetInputBlockSize(); public int GetOutputBlockSize(); public byte[] ProcessBlock(byte[] input, int inOff, int length); } }