CngKey.Import Methode

Definition

Erstellt einen neuen Schlüssel, indem Schlüsselmaterial in den Schlüsselspeicheranbieter (Key Storage Provider, KSP) importiert wird.

Überlädt

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

Erstellt einen neuen Schlüssel, indem das angegebene Schlüsselmaterial mithilfe des angegebenen Formats in den angegebenen Schlüsselspeicheranbieter (Key Storage Provider, KSP) importiert wird.

Import(Byte[], CngKeyBlobFormat)

Erstellt einen neuen Schlüssel, indem das angegebene Schlüsselmaterial in den Standardschlüsselspeicheranbieter (KSP) importiert und das angegebene Format verwendet wird.

Import(Byte[], CngKeyBlobFormat, CngProvider)

Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs

Erstellt einen neuen Schlüssel, indem das angegebene Schlüsselmaterial mithilfe des angegebenen Formats in den angegebenen Schlüsselspeicheranbieter (Key Storage Provider, KSP) importiert wird.

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

Parameter

keyBlob
Byte[]

Ein Array, das die wichtigsten Informationen enthält.

format
CngKeyBlobFormat

Ein Objekt, das das Format des keyBlob Arrays angibt.

provider
CngProvider

Der KSP.

Gibt zurück

Ein neuer Schlüssel.

Attribute

Ausnahmen

keyBlob, formatoder provider ist .null

Kryptografie der nächsten Generation (CNG) wird auf diesem System nicht unterstützt.

Alle anderen Fehler.

Hinweise

Important

In Windows Betriebssystemen vor Windows 7 und Windows Server 2008 R2 werden einige BLOB-Formate (Binary Large Object) für CNG-Schlüssel nicht unterstützt.On Windows operating systems before Windows 7 and Windows Server 2008 R2, some CNG key binary large object (BLOB) formats are not supported.

Gilt für:

Import(Byte[], CngKeyBlobFormat)

Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs
Quelle:
Cng.NotSupported.cs

Erstellt einen neuen Schlüssel, indem das angegebene Schlüsselmaterial in den Standardschlüsselspeicheranbieter (KSP) importiert und das angegebene Format verwendet wird.

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

Parameter

keyBlob
Byte[]

Ein Array, das die wichtigsten Informationen enthält.

format
CngKeyBlobFormat

Ein Objekt, das das Format des keyBlob Arrays angibt.

Gibt zurück

Ein neuer Schlüssel.

Attribute

Ausnahmen

keyBlob oder format ist null.

Kryptografie der nächsten Generation (CNG) wird auf diesem System nicht unterstützt.

Alle anderen Fehler.

Hinweise

Der Standard-KSP ist MicrosoftSoftwareKeyStorageProvider.

Important

In Windows Betriebssystemen vor Windows 7 und Windows Server 2008 R2 werden einige BLOB-Formate (Binary Large Object) für CNG-Schlüssel nicht unterstützt.On Windows operating systems before Windows 7 and Windows Server 2008 R2, some CNG key binary large object (BLOB) formats are not supported.

Gilt für: