DSACryptoServiceProvider Constructors

Definition

Initializes a new instance of the DSACryptoServiceProvider class.

Overloads

DSACryptoServiceProvider()

Initializes a new instance of the DSACryptoServiceProvider class.

DSACryptoServiceProvider(Int32)

Initializes a new instance of the DSACryptoServiceProvider class with the specified key size.

DSACryptoServiceProvider(CspParameters)

Initializes a new instance of the DSACryptoServiceProvider class with the specified parameters for the cryptographic service provider (CSP).

DSACryptoServiceProvider(Int32, CspParameters)

Initializes a new instance of the DSACryptoServiceProvider class with the specified key size and parameters for the cryptographic service provider (CSP).

DSACryptoServiceProvider()

Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs

Initializes a new instance of the DSACryptoServiceProvider class.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public DSACryptoServiceProvider();
C#
public DSACryptoServiceProvider();
Attributes

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

DSACryptoServiceProvider(Int32)

Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs

Initializes a new instance of the DSACryptoServiceProvider class with the specified key size.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public DSACryptoServiceProvider(int dwKeySize);
C#
public DSACryptoServiceProvider(int dwKeySize);

Parameters

dwKeySize
Int32

The size of the key for the asymmetric algorithm in bits.

Attributes

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

DSACryptoServiceProvider(CspParameters)

Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs

Initializes a new instance of the DSACryptoServiceProvider class with the specified parameters for the cryptographic service provider (CSP).

C#
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public DSACryptoServiceProvider(System.Security.Cryptography.CspParameters? parameters);
C#
public DSACryptoServiceProvider(System.Security.Cryptography.CspParameters parameters);

Parameters

parameters
CspParameters

The parameters for the CSP.

Attributes

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

DSACryptoServiceProvider(Int32, CspParameters)

Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs

Initializes a new instance of the DSACryptoServiceProvider class with the specified key size and parameters for the cryptographic service provider (CSP).

C#
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public DSACryptoServiceProvider(int dwKeySize, System.Security.Cryptography.CspParameters? parameters);
C#
public DSACryptoServiceProvider(int dwKeySize, System.Security.Cryptography.CspParameters parameters);

Parameters

dwKeySize
Int32

The size of the key for the cryptographic algorithm in bits.

parameters
CspParameters

The parameters for the CSP.

Attributes

Exceptions

The CSP cannot be acquired.

-or-

The key cannot be created.

dwKeySize is out of range.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1