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

SignerUtilities

public static class SignerUtilities
Signer Utility class contains methods that can not be specifically grouped into other classes.
public static ICollection<string> Algorithms { get; }

public static Asn1Encodable GetDefaultX509Parameters(string algorithm)

public static string GetEncodingName(DerObjectIdentifier oid)

public static DerObjectIdentifier GetObjectIdentifier(string mechanism)

Returns an ObjectIdentifier for a given signature mechanism.

public static ISigner GetSigner(string algorithm)

public static ISigner InitSigner(DerObjectIdentifier algorithmOid, bool forSigning, AsymmetricKeyParameter privateKey, SecureRandom random)

public static ISigner InitSigner(string algorithm, bool forSigning, AsymmetricKeyParameter privateKey, SecureRandom random)