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

Asn1SignatureFactory

Calculator factory class for signature generation in ASN.1 based profiles that use an AlgorithmIdentifier to preserve signature algorithm details.
public static IEnumerable<string> SignatureAlgNames { get; }

Allows enumeration of the signature names supported by the verifier provider.

public object AlgorithmDetails { get; }

public Asn1SignatureFactory(string algorithm, AsymmetricKeyParameter privateKey)

Base constructor.

public Asn1SignatureFactory(string algorithm, AsymmetricKeyParameter privateKey, SecureRandom random)

Constructor which also specifies a source of randomness to be used if one is required.