CngKey.Import 메서드

정의

키 자료를 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

오버로드

Name Description
Import(Byte[], CngKeyBlobFormat, CngProvider)

지정된 형식을 사용하여 지정된 키 자료를 지정된 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

Import(Byte[], CngKeyBlobFormat)

지정된 키 자료를 기본 KSP(키 스토리지 공급자)로 가져오고 지정된 형식을 사용하여 새 키를 만듭니다.

Import(Byte[], CngKeyBlobFormat, CngProvider)

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

지정된 형식을 사용하여 지정된 키 자료를 지정된 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format, System::Security::Cryptography::CngProvider ^ provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat, provider As CngProvider) As CngKey

매개 변수

keyBlob
Byte[]

키 정보를 포함하는 배열입니다.

format
CngKeyBlobFormat

배열의 형식을 지정하는 개체입니다 keyBlob .

provider
CngProvider

KSP입니다.

반품

새 키입니다.

특성

예외

keyBlob, format또는 provider 입니다 null.

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

다른 모든 오류입니다.

설명

Important

Windows 7 Windows Server 2008 R2 이전의 Windows 운영 체제에서는 일부 CNG 키 BLOB(Binary Large Object) 형식이 지원되지 않습니다.

적용 대상

Import(Byte[], CngKeyBlobFormat)

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

지정된 키 자료를 기본 KSP(키 스토리지 공급자)로 가져오고 지정된 형식을 사용하여 새 키를 만듭니다.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat) As CngKey

매개 변수

keyBlob
Byte[]

키 정보를 포함하는 배열입니다.

format
CngKeyBlobFormat

배열의 형식을 지정하는 개체입니다 keyBlob .

반품

새 키입니다.

특성

예외

keyBlob 또는 format .입니다 null.

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

다른 모든 오류입니다.

설명

기본 KSP는 .입니다 MicrosoftSoftwareKeyStorageProvider.

Important

Windows 7 Windows Server 2008 R2 이전의 Windows 운영 체제에서는 일부 CNG 키 BLOB(Binary Large Object) 형식이 지원되지 않습니다.

적용 대상