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

Org.BouncyCastle.Security.GeneratorUtilities

public static class GeneratorUtilities
namespace Org.BouncyCastle.Security { public static class GeneratorUtilities { public static CipherKeyGenerator GetKeyGenerator(DerObjectIdentifier oid); public static CipherKeyGenerator GetKeyGenerator(string algorithm); public static IAsymmetricCipherKeyPairGenerator GetKeyPairGenerator(DerObjectIdentifier oid); public static IAsymmetricCipherKeyPairGenerator GetKeyPairGenerator(string algorithm); } }