CngKey.Create 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
새 CngKey 키를 나타내는 개체를 만듭니다.
오버로드
| Name | Description |
|---|---|
| Create(CngAlgorithm) |
지정된 알고리즘과 CngKey 함께 사용할 수 있는 개체를 만듭니다. |
| Create(CngAlgorithm, String) |
지정된 알고리즘을 제공하는 명명 CngKey 된 개체를 만듭니다. |
| Create(CngAlgorithm, String, CngKeyCreationParameters) |
제공된 키 만들기 매개 변수를 사용하여 지정된 알고리즘을 제공하는 명명 CngKey 된 개체를 만듭니다. |
Create(CngAlgorithm)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
지정된 알고리즘과 CngKey 함께 사용할 수 있는 개체를 만듭니다.
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);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm) As CngKey
매개 변수
- algorithm
- CngAlgorithm
키를 사용할 알고리즘입니다.
반품
임시 키입니다.
- 특성
예외
algorithm은 null입니다.
CNG(Cryptography Next Generation)는 이 시스템에서 지원되지 않습니다.
다른 모든 오류입니다.
설명
이 오버로드는 이름 없이 키를 만듭니다. 즉, 키가 임시 키(즉, 유지되지 않음)입니다. 또한 키에 대한 기본 CngKeyCreationParameters 및 기타 고급 매개 변수를 지정하는 기본 CngProvider 개체를 만듭니다.
적용 대상
Create(CngAlgorithm, String)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
지정된 알고리즘을 제공하는 명명 CngKey 된 개체를 만듭니다.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::String ^ keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
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);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
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
키 이름입니다. 이름이 제공되지 않으면 키가 유지되지 않습니다.
반품
지정된 알고리즘을 제공하는 지속형 또는 임시 키입니다.
- 특성
예외
algorithm은 null입니다.
CNG(Cryptography Next Generation)는 이 시스템에서 지원되지 않습니다.
다른 모든 오류입니다.
설명
제공된 경우 keyName 이 오버로드는 지속형 키를 만듭니다. 제공되지 않은 경우 keyName 키는 삭제됩니다. 또한 이 오버로드는 키에 대한 기본 CngKeyCreationParameters 및 기타 고급 매개 변수를 지정하는 기본 CngProvider 개체를 만듭니다.
적용 대상
Create(CngAlgorithm, String, CngKeyCreationParameters)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
제공된 키 만들기 매개 변수를 사용하여 지정된 알고리즘을 제공하는 명명 CngKey 된 개체를 만듭니다.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::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);
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.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName, System.Security.Cryptography.CngKeyCreationParameters creationParameters);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
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개체입니다.
반품
지정된 알고리즘을 제공하는 지속형 또는 임시 키입니다.
- 특성
예외
algorithm은 null입니다.
CNG(Cryptography Next Generation)는 이 시스템에서 지원되지 않습니다.
다른 모든 오류입니다.
설명
제공된 경우 keyName 이 오버로드는 지속형 키를 만듭니다. 제공되지 않은 경우 keyName 키는 삭제됩니다.