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

Org.BouncyCastle.Crypto.Operators.Asn1CipherBuilderWithKey

namespace Org.BouncyCastle.Crypto.Operators { public class Asn1CipherBuilderWithKey : ICipherBuilderWithKey, ICipherBuilder { public object AlgorithmDetails { get; } public ICipherParameters Key { get; } public Asn1CipherBuilderWithKey(DerObjectIdentifier encryptionOID, int keySize, SecureRandom random); public int GetMaxOutputSize(int inputLen); public ICipher BuildCipher(Stream stream); } }