<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0-preview.3.20214.6" />

System.Security.Cryptography.DSACng

public sealed class DSACng : DSA
Provides a Cryptography Next Generation (CNG) implementation of the Digital Signature Algorithm (DSA).
public CngKey Key { get; }

Gets the key that will be used by the DSACng object for any cryptographic operation that it performs.

public DSACng()

Initializes a new instance of the DSACng class with a random 2,048-bit key pair.

public DSACng(int keySize)

Initializes a new instance of the DSACng class with a randomly generated key of the specified size.

public DSACng(CngKey key)

Initializes a new instance of the DSACng class with the specified key.