MLKem.ImportPkcs8PrivateKey Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur.
Überlädt
| Name | Beschreibung |
|---|---|
| ImportPkcs8PrivateKey(Byte[]) |
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur. |
| ImportPkcs8PrivateKey(ReadOnlySpan<Byte>) |
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur. |
ImportPkcs8PrivateKey(Byte[])
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur.
public:
static System::Security::Cryptography::MLKem ^ ImportPkcs8PrivateKey(cli::array <System::Byte> ^ source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLKem ImportPkcs8PrivateKey(byte[] source);
public static System.Security.Cryptography.MLKem ImportPkcs8PrivateKey(byte[] source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportPkcs8PrivateKey : byte[] -> System.Security.Cryptography.MLKem
static member ImportPkcs8PrivateKey : byte[] -> System.Security.Cryptography.MLKem
Public Shared Function ImportPkcs8PrivateKey (source As Byte()) As MLKem
Parameter
- source
- Byte[]
Die Bytes einer PKCS#8 PrivateKeyInfo-Struktur in der ASN.1-BER-Codierung.
Gibt zurück
Der importierte Schlüssel.
- Attribute
Ausnahmen
source ist null
Gilt für:
ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur.
public:
static System::Security::Cryptography::MLKem ^ ImportPkcs8PrivateKey(ReadOnlySpan<System::Byte> source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> source);
public static System.Security.Cryptography.MLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportPkcs8PrivateKey : ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
static member ImportPkcs8PrivateKey : ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
Public Shared Function ImportPkcs8PrivateKey (source As ReadOnlySpan(Of Byte)) As MLKem
Parameter
- source
- ReadOnlySpan<Byte>
Die Bytes einer PKCS#8 PrivateKeyInfo-Struktur in der ASN.1-BER-Codierung.
Gibt zurück
Der importierte Schlüssel.
- Attribute
Ausnahmen
Der Inhalt stellt source keine ASN.1-BER-codierte PKCS#8 PrivateKeyInfo-Struktur dar.
-oder-
Der Wert "PrivateKeyInfo" stellt keinen ML-KEM Schlüssel dar.
-oder-
source enthält nachfolgende Daten nach der ASN.1-Struktur.
-oder-
Fehler beim algorithmusspezifischen Import.
Die Plattform unterstützt ML-KEM nicht. Anrufer können die IsSupported Eigenschaft verwenden, um festzustellen, ob die Plattform ML-KEM unterstützt.