CngKey.Import Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée une clé en important du matériel de clé dans le fournisseur de stockage de clés (KSP).
Surcharges
| Nom | Description |
|---|---|
| Import(Byte[], CngKeyBlobFormat, CngProvider) |
Crée une clé en important le matériel de clé spécifié dans le fournisseur de stockage de clés spécifié (KSP), à l’aide du format spécifié. |
| Import(Byte[], CngKeyBlobFormat) |
Crée une clé en important le matériel de clé spécifié dans le fournisseur de stockage de clés par défaut (KSP) et en utilisant le format spécifié. |
Import(Byte[], CngKeyBlobFormat, CngProvider)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Crée une clé en important le matériel de clé spécifié dans le fournisseur de stockage de clés spécifié (KSP), à l’aide du format spécifié.
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
Paramètres
- keyBlob
- Byte[]
Tableau qui contient les informations clés.
- format
- CngKeyBlobFormat
Objet qui spécifie le format du keyBlob tableau.
- provider
- CngProvider
The KSP.
Retours
Nouvelle clé.
- Attributs
Exceptions
keyBlob, formatou provider est null.
Le chiffrement de nouvelle génération (CNG) n’est pas pris en charge sur ce système.
Toutes les autres erreurs.
Remarques
Important
Sur Windows systèmes d’exploitation avant Windows 7 et Windows Server 2008 R2, certains formats blob (binary large object) de clé CNG ne sont pas pris en charge.
S’applique à
Import(Byte[], CngKeyBlobFormat)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Crée une clé en important le matériel de clé spécifié dans le fournisseur de stockage de clés par défaut (KSP) et en utilisant le format spécifié.
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
Paramètres
- keyBlob
- Byte[]
Tableau qui contient les informations clés.
- format
- CngKeyBlobFormat
Objet qui spécifie le format du keyBlob tableau.
Retours
Nouvelle clé.
- Attributs
Exceptions
keyBlob ou format est null.
Le chiffrement de nouvelle génération (CNG) n’est pas pris en charge sur ce système.
Toutes les autres erreurs.
Remarques
Le KSP par défaut est MicrosoftSoftwareKeyStorageProvider.
Important
Sur Windows systèmes d’exploitation avant Windows 7 et Windows Server 2008 R2, certains formats blob (binary large object) de clé CNG ne sont pas pris en charge.