MLDsa.ImportPkcs8PrivateKey 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.
Importe une clé privée ML-DSA à partir d’une structure PrivateKeyInfo PKCS#8.
Surcharges
| Nom | Description |
|---|---|
| ImportPkcs8PrivateKey(Byte[]) |
Importe une clé privée ML-DSA à partir d’une structure PrivateKeyInfo PKCS#8. |
| ImportPkcs8PrivateKey(ReadOnlySpan<Byte>) |
Importe une clé privée ML-DSA à partir d’une structure PrivateKeyInfo PKCS#8. |
ImportPkcs8PrivateKey(Byte[])
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
Importe une clé privée ML-DSA à partir d’une structure PrivateKeyInfo PKCS#8.
public:
static System::Security::Cryptography::MLDsa ^ ImportPkcs8PrivateKey(cli::array <System::Byte> ^ source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLDsa ImportPkcs8PrivateKey(byte[] source);
public static System.Security.Cryptography.MLDsa ImportPkcs8PrivateKey(byte[] source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportPkcs8PrivateKey : byte[] -> System.Security.Cryptography.MLDsa
static member ImportPkcs8PrivateKey : byte[] -> System.Security.Cryptography.MLDsa
Public Shared Function ImportPkcs8PrivateKey (source As Byte()) As MLDsa
Paramètres
- source
- Byte[]
Octets d’une structure PKCS#8 PrivateKeyInfo dans l’encodage ASN.1-BER.
Retours
Clé importée.
- Attributs
Exceptions
source a la valeur null.
S’applique à
ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
Importe une clé privée ML-DSA à partir d’une structure PrivateKeyInfo PKCS#8.
public:
static System::Security::Cryptography::MLDsa ^ ImportPkcs8PrivateKey(ReadOnlySpan<System::Byte> source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source);
public static System.Security.Cryptography.MLDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportPkcs8PrivateKey : ReadOnlySpan<byte> -> System.Security.Cryptography.MLDsa
static member ImportPkcs8PrivateKey : ReadOnlySpan<byte> -> System.Security.Cryptography.MLDsa
Public Shared Function ImportPkcs8PrivateKey (source As ReadOnlySpan(Of Byte)) As MLDsa
Paramètres
- source
- ReadOnlySpan<Byte>
Octets d’une structure PKCS#8 PrivateKeyInfo dans l’encodage ASN.1-BER.
Retours
Clé importée.
- Attributs
Exceptions
Le contenu de source ne représente pas une structure PKCS#8 PrivateKeyInfo encodée ASN.1-BER.
- ou -
La valeur PrivateKeyInfo ne représente pas de clé ML-DSA.
- ou -
source contient des données de fin après la structure ASN.1.
- ou -
L’importation spécifique à l’algorithme a échoué.
La plateforme ne prend pas en charge ML-DSA. Les appelants peuvent utiliser la IsSupported propriété pour déterminer si la plateforme prend en charge ML-DSA.