MLDsa.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-DSA privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur.
Überlädt
| Name | Beschreibung |
|---|---|
| ImportPkcs8PrivateKey(Byte[]) |
Importiert einen ML-DSA privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur. |
| ImportPkcs8PrivateKey(ReadOnlySpan<Byte>) |
Importiert einen ML-DSA privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur. |
ImportPkcs8PrivateKey(Byte[])
- Quelle:
- MLDsa.cs
- Quelle:
- MLDsa.cs
- Quelle:
- MLDsa.cs
Importiert einen ML-DSA privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur.
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
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:
- MLDsa.cs
- Quelle:
- MLDsa.cs
- Quelle:
- MLDsa.cs
Importiert einen ML-DSA privaten Schlüssel aus einer PKCS#8 PrivateKeyInfo-Struktur.
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
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-DSA Schlüssel dar.
-oder-
source enthält nachfolgende Daten nach der ASN.1-Struktur.
-oder-
Fehler beim algorithmusspezifischen Import.
Die Plattform unterstützt ML-DSA nicht. Aufrufer können die IsSupported Eigenschaft verwenden, um festzustellen, ob die Plattform ML-DSA unterstützt.