<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.
public static string GetAlgorithmName(DerObjectIdentifier oid)

Returns the canonical algorithm name registered for the given ASN.1 OID, or null if the OID is not mapped to a known cipher.

Resolve and instantiate an IBufferedCipher for the given ASN.1 algorithm OID.

public static IBufferedCipher GetCipher(string algorithm)

Resolve and instantiate an IBufferedCipher for the given algorithm specification.