DSACng 생성자

정의

DSACng 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
DSACng()

임의의 2,048비트 키 쌍을 사용하여 클래스의 DSACng 새 인스턴스를 초기화합니다.

DSACng(Int32)

지정된 크기의 임의 DSACng 로 생성된 키를 사용하여 클래스의 새 인스턴스를 초기화합니다.

DSACng(CngKey)

지정된 키를 사용하여 클래스의 DSACng 새 인스턴스를 초기화합니다.

DSACng()

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

임의의 2,048비트 키 쌍을 사용하여 클래스의 DSACng 새 인스턴스를 초기화합니다.

public:
 DSACng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public DSACng();
public DSACng();
Public Sub New ()
특성

적용 대상

DSACng(Int32)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

지정된 크기의 임의 DSACng 로 생성된 키를 사용하여 클래스의 새 인스턴스를 초기화합니다.

public:
 DSACng(int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public DSACng(int keySize);
public DSACng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSACng : int -> System.Security.Cryptography.DSACng
new System.Security.Cryptography.DSACng : int -> System.Security.Cryptography.DSACng
Public Sub New (keySize As Integer)

매개 변수

keySize
Int32

비트 단위로 생성할 키의 크기입니다.

특성

예외

keySize 가 잘못되었습니다.

설명

유효한 키 크기는 512비트에서 3,072비트까지 다양하며 64비트 단위입니다. 모든 키에 최소 2,048비트를 사용하는 것이 좋습니다.

Important

DSA 알고리즘의 작성자는 해당 알고리즘에 대한 지원을 철회했습니다. 다른 RSA 클래스를 사용하는 대신 ECDsa 클래스나 DSA 클래스를 사용하는 것이 좋습니다. 레거시 애플리케이션 및 데이터와의 호환성에만 사용합니다 DSA .

적용 대상

DSACng(CngKey)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

지정된 키를 사용하여 클래스의 DSACng 새 인스턴스를 초기화합니다.

public:
 DSACng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public DSACng(System.Security.Cryptography.CngKey key);
public DSACng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSACng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.DSACng
new System.Security.Cryptography.DSACng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.DSACng
Public Sub New (key As CngKey)

매개 변수

key
CngKey

DSA 작업에 사용할 키입니다.

특성

예외

key 가 유효한 DSA 키가 아닌 경우

keynull입니다.

설명

CngKey.AlgorithmGroup 값은 key 여야 CngAlgorithmGroup.Dsa합니다.

이 생성자는 키의 복사본을 만듭니다. 삭제된 경우에도 key DSA에서 이 키 개체의 복사본은 활성 상태로 유지됩니다.

적용 대상