MLKem.ImportEncryptedPkcs8PrivateKey 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 EncryptedPrivateKeyInfo-Struktur.
Überlädt
| Name | Beschreibung |
|---|---|
| ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 EncryptedPrivateKeyInfo-Struktur. |
| ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) |
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 EncryptedPrivateKeyInfo-Struktur. |
| ImportEncryptedPkcs8PrivateKey(String, Byte[]) |
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 EncryptedPrivateKeyInfo-Struktur. |
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 EncryptedPrivateKeyInfo-Struktur.
public:
static System::Security::Cryptography::MLKem ^ ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<System::Byte> passwordBytes, ReadOnlySpan<System::Byte> source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source);
public static System.Security.Cryptography.MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
Public Shared Function ImportEncryptedPkcs8PrivateKey (passwordBytes As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte)) As MLKem
Parameter
- passwordBytes
- ReadOnlySpan<Byte>
Die Bytes, die beim Entschlüsseln des Schlüsselmaterials als Kennwort verwendet werden sollen.
- source
- ReadOnlySpan<Byte>
Die Bytes einer PKCS#8 EncryptedPrivateKeyInfo-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 EncryptedPrivateKeyInfo-Struktur dar.
-oder-
Das angegebene Kennwort ist falsch.
-oder-
Die EncryptedPrivateKeyInfo gibt an, dass die zu übernehmende Key-Ableitungsfunktion (Key Derivation Function, KDF) die ältere PKCS#12 KDF ist, die -basierte Kennwörter erfordert Char.
-oder-
Der Wert stellt keinen ML-KEM Schlüssel dar.
-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.
Gilt für:
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 EncryptedPrivateKeyInfo-Struktur.
public:
static System::Security::Cryptography::MLKem ^ ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<System::Byte> source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source);
public static System.Security.Cryptography.MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
Public Shared Function ImportEncryptedPkcs8PrivateKey (password As ReadOnlySpan(Of Char), source As ReadOnlySpan(Of Byte)) As MLKem
Parameter
- password
- ReadOnlySpan<Char>
Das Kennwort, das beim Entschlüsseln des Schlüsselmaterials verwendet werden soll.
- source
- ReadOnlySpan<Byte>
Die Bytes einer PKCS#8 EncryptedPrivateKeyInfo-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 EncryptedPrivateKeyInfo-Struktur dar.
-oder-
Das angegebene Kennwort ist falsch.
-oder-
Der Wert stellt keinen ML-KEM Schlüssel dar.
-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.
Gilt für:
ImportEncryptedPkcs8PrivateKey(String, Byte[])
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
- Quelle:
- MLKem.cs
Importiert einen ML-KEM privaten Schlüssel aus einer PKCS#8 EncryptedPrivateKeyInfo-Struktur.
public:
static System::Security::Cryptography::MLKem ^ ImportEncryptedPkcs8PrivateKey(System::String ^ password, cli::array <System::Byte> ^ source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLKem ImportEncryptedPkcs8PrivateKey(string password, byte[] source);
public static System.Security.Cryptography.MLKem ImportEncryptedPkcs8PrivateKey(string password, byte[] source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportEncryptedPkcs8PrivateKey : string * byte[] -> System.Security.Cryptography.MLKem
static member ImportEncryptedPkcs8PrivateKey : string * byte[] -> System.Security.Cryptography.MLKem
Public Shared Function ImportEncryptedPkcs8PrivateKey (password As String, source As Byte()) As MLKem
Parameter
- password
- String
Das Kennwort, das beim Entschlüsseln des Schlüsselmaterials verwendet werden soll.
- source
- Byte[]
Die Bytes einer PKCS#8 EncryptedPrivateKeyInfo-Struktur in der ASN.1-BER-Codierung.
Gibt zurück
Der importierte Schlüssel.
- Attribute
Ausnahmen
password oder source ist null.
Der Inhalt stellt source keine ASN.1-BER-codierte PKCS#8 EncryptedPrivateKeyInfo-Struktur dar.
-oder-
Das angegebene Kennwort ist falsch.
-oder-
Der Wert stellt keinen ML-KEM Schlüssel dar.
-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.