ECDsaCng 생성자

정의

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

오버로드

ECDsaCng()

임의의 키 쌍을 사용하여 ECDsaCng 클래스의 새 인스턴스를 초기화합니다.

ECDsaCng(Int32)

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

ECDsaCng(CngKey)

지정된 CngKey 개체를 사용하여 ECDsaCng 클래스의 새 인스턴스를 초기화합니다.

ECDsaCng(ECCurve)

해당 퍼블릭/프라이빗 키 쌍이 지정된 곡선에서 생성되는 ECDsaCng 클래스의 새 인스턴스를 초기화합니다.

ECDsaCng()

임의의 키 쌍을 사용하여 ECDsaCng 클래스의 새 인스턴스를 초기화합니다.

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

예외

CNG(Cryptography Next Generation) 클래스는 이 시스템에서 지원되지 않습니다.

설명

이 생성자는 새 퍼블릭/프라이빗 키페어를 즉시 생성하지 않습니다. 이 생성자는 속성을 521로 설정하고 KeySize 키가 필요한 경우 저장된 크기를 사용하여 대상 곡선을 식별합니다. 메서드 또는 다른 키 가져오기 메서드를 ImportParameters 통해 키를 로드하는 경우 이 생성자의 키 크기는 의미가 없습니다.

추가 정보

적용 대상

ECDsaCng(Int32)

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

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

매개 변수

keySize
Int32

키 크기입니다. 유효한 키 크기는 256, 384 및 521비트입니다.

특성

예외

CNG(Cryptography Next Generation) 클래스는 이 시스템에서 지원되지 않습니다.

keySize에서 잘못된 길이를 지정합니다.

설명

이 생성자는 새 퍼블릭/프라이빗 키페어를 즉시 생성하지 않습니다. 이 생성자는 속성을 제공된 값으로 설정하고 KeySize 키가 필요한 경우 저장된 크기를 사용하여 대상 곡선을 식별합니다. 메서드 또는 다른 키 가져오기 메서드를 ImportParameters 통해 키를 로드하는 경우 이 생성자의 키 크기는 의미가 없습니다.

추가 정보

적용 대상

ECDsaCng(CngKey)

지정된 CngKey 개체를 사용하여 ECDsaCng 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

key
CngKey

현재 개체에 의해 수행되는 암호화 작업의 입력으로 사용할 키입니다.

특성

예외

key가 ECDSA(타원 곡선 디지털 서명 알고리즘) 그룹을 지정하지 않은 경우

key이(가) null인 경우

CNG(Cryptography Next Generation) 클래스는 이 시스템에서 지원되지 않습니다.

적용 대상

ECDsaCng(ECCurve)

해당 퍼블릭/프라이빗 키 쌍이 지정된 곡선에서 생성되는 ECDsaCng 클래스의 새 인스턴스를 초기화합니다.

public:
 ECDsaCng(System::Security::Cryptography::ECCurve curve);
public ECDsaCng (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
Public Sub New (curve As ECCurve)

매개 변수

curve
ECCurve

퍼블릭/프라이빗 키 쌍을 생성하는 데 사용되는 곡선입니다.

특성

예외

curve의 유효성을 검사할 수 없습니다.

curve이(가) null인 경우

curve에 FriendlyName이 있는 Oid가 없습니다.

설명

curve 는 메서드에 전달될 때 유효성을 검사해야 하며(즉, 반환 true해야 합니다) 명명된 ECCurve.Validate 또는 명시적 소수여야 합니다.

적용 대상