Share via


CngKey.Create 메서드

정의

새 키를 나타내는 CngKey 개체를 만듭니다.

오버로드

Create(CngAlgorithm)

지정된 알고리즘에 사용할 수 있는 CngKey 개체를 만듭니다.

Create(CngAlgorithm, String)

지정된 알고리즘을 제공하는 명명된 CngKey 개체를 만듭니다.

Create(CngAlgorithm, String, CngKeyCreationParameters)

제공된 키 생성 매개 변수를 사용하여 지정된 알고리즘을 제공하는 명명된 CngKey 개체를 만듭니다.

Create(CngAlgorithm)

지정된 알고리즘에 사용할 수 있는 CngKey 개체를 만듭니다.

public:
 static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm);
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm);
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm) As CngKey

매개 변수

algorithm
CngAlgorithm

키에 사용할 알고리즘입니다.

반환

CngKey

사용 후 삭제되는 키입니다.

특성

예외

algorithm이(가) null인 경우

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

다른 모든 오류입니다.

설명

이 오버로드는 이름 없이 키를 만듭니다. 즉, 키는 삭제(즉, 유지되지 않음)입니다. 또한 키에 대한 기본 CngKeyCreationParameters 및 기타 고급 매개 변수를 지정하는 기본 CngProvider 개체를 만듭니다.

적용 대상

Create(CngAlgorithm, String)

지정된 알고리즘을 제공하는 명명된 CngKey 개체를 만듭니다.

public:
 static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::String ^ keyName);
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string keyName);
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string? keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string? keyName);
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm, keyName As String) As CngKey

매개 변수

algorithm
CngAlgorithm

키에 사용할 알고리즘입니다.

keyName
String

키 이름입니다. 이름을 제공하지 않으면 키가 지속되지 않습니다.

반환

CngKey

지정된 알고리즘을 제공하는 사용 후 지속되거나 삭제되는 키입니다.

특성

예외

algorithm이(가) null인 경우

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

다른 모든 오류입니다.

설명

제공된 경우 keyName 이 오버로드는 지속형 키를 만듭니다. 제공되지 않은 경우 keyName 키는 삭제됩니다. 또한 이 오버로드는 키에 대한 기본 CngKeyCreationParameters 및 기타 고급 매개 변수를 지정하는 기본 CngProvider 개체를 만듭니다.

적용 대상

Create(CngAlgorithm, String, CngKeyCreationParameters)

제공된 키 생성 매개 변수를 사용하여 지정된 알고리즘을 제공하는 명명된 CngKey 개체를 만듭니다.

public:
 static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::String ^ keyName, System::Security::Cryptography::CngKeyCreationParameters ^ creationParameters);
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string keyName, System.Security.Cryptography.CngKeyCreationParameters creationParameters);
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string? keyName, System.Security.Cryptography.CngKeyCreationParameters? creationParameters);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string? keyName, System.Security.Cryptography.CngKeyCreationParameters? creationParameters);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string keyName, System.Security.Cryptography.CngKeyCreationParameters creationParameters);
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm, keyName As String, creationParameters As CngKeyCreationParameters) As CngKey

매개 변수

algorithm
CngAlgorithm

키에 사용할 알고리즘입니다.

keyName
String

키 이름입니다. 이름을 제공하지 않으면 키가 지속되지 않습니다.

creationParameters
CngKeyCreationParameters

CngProvider를 비롯한 메서드의 고급 매개 변수를 지정하는 개체입니다.

반환

CngKey

지정된 알고리즘을 제공하는 사용 후 지속되거나 삭제되는 키입니다.

특성

예외

algorithm이(가) null인 경우

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

다른 모든 오류입니다.

설명

제공된 경우 keyName 이 오버로드는 지속형 키를 만듭니다. 제공되지 않은 경우 keyName 키는 삭제됩니다.

적용 대상