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

Org.BouncyCastle.Security.CipherUtilities

public static class CipherUtilities
Factory for IBufferedCipher instances, resolved from a textual algorithm name (with optional mode/padding components) or from an ASN.1 algorithm OID.
namespace Org.BouncyCastle.Security { public static class CipherUtilities { public static string GetAlgorithmName(DerObjectIdentifier oid); public static IBufferedCipher GetCipher(DerObjectIdentifier oid); public static IBufferedCipher GetCipher(string algorithm); } }