CngKey.Import Metodo

Definizione

Crea una nuova chiave importando il materiale della chiave nel provider di archiviazione chiavi (KSP).

Overload

Nome Descrizione
Import(Byte[], CngKeyBlobFormat, CngProvider)

Crea una nuova chiave importando il materiale della chiave specificato nel provider di archiviazione chiavi (KSP) specificato, usando il formato specificato.

Import(Byte[], CngKeyBlobFormat)

Crea una nuova chiave importando il materiale della chiave specificato nel provider di archiviazione chiavi predefinito (KSP) e usando il formato specificato.

Import(Byte[], CngKeyBlobFormat, CngProvider)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Crea una nuova chiave importando il materiale della chiave specificato nel provider di archiviazione chiavi (KSP) specificato, usando il formato specificato.

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

Parametri

keyBlob
Byte[]

Matrice che contiene le informazioni sulla chiave.

format
CngKeyBlobFormat

Oggetto che specifica il formato della keyBlob matrice.

provider
CngProvider

The KSP.

Valori restituiti

Nuova chiave.

Attributi

Eccezioni

keyBlob, formato provider è null.

La crittografia next generation (CNG) non è supportata in questo sistema.

Tutti gli altri errori.

Commenti

Importante

Nei sistemi operativi Windows prima di Windows 7 e Windows Server 2008 R2, alcuni formati BLOB (Key Binary Object) della chiave CNG non sono supportati.

Si applica a

Import(Byte[], CngKeyBlobFormat)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Crea una nuova chiave importando il materiale della chiave specificato nel provider di archiviazione chiavi predefinito (KSP) e usando il formato specificato.

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

Parametri

keyBlob
Byte[]

Matrice che contiene le informazioni sulla chiave.

format
CngKeyBlobFormat

Oggetto che specifica il formato della keyBlob matrice.

Valori restituiti

Nuova chiave.

Attributi

Eccezioni

keyBlob o format è null.

La crittografia next generation (CNG) non è supportata in questo sistema.

Tutti gli altri errori.

Commenti

Il provider di servizi di configurazione predefinito è MicrosoftSoftwareKeyStorageProvider.

Importante

Nei sistemi operativi Windows prima di Windows 7 e Windows Server 2008 R2, alcuni formati BLOB (Key Binary Object) della chiave CNG non sono supportati.

Si applica a