MLDsa.ImportEncryptedPkcs8PrivateKey Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Importuje klucz prywatny ML-DSA ze struktury PKCS#8 EncryptedPrivateKeyInfo.
Przeciążenia
| Nazwa | Opis |
|---|---|
| ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Importuje klucz prywatny ML-DSA ze struktury PKCS#8 EncryptedPrivateKeyInfo. |
| ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) |
Importuje klucz prywatny ML-DSA ze struktury PKCS#8 EncryptedPrivateKeyInfo. |
| ImportEncryptedPkcs8PrivateKey(String, Byte[]) |
Importuje klucz prywatny ML-DSA ze struktury PKCS#8 EncryptedPrivateKeyInfo. |
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
- Źródło:
- MLDsa.cs
- Źródło:
- MLDsa.cs
- Źródło:
- MLDsa.cs
Importuje klucz prywatny ML-DSA ze struktury PKCS#8 EncryptedPrivateKeyInfo.
public:
static System::Security::Cryptography::MLDsa ^ 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.MLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source);
public static System.Security.Cryptography.MLDsa 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.MLDsa
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> System.Security.Cryptography.MLDsa
Public Shared Function ImportEncryptedPkcs8PrivateKey (passwordBytes As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte)) As MLDsa
Parametry
- passwordBytes
- ReadOnlySpan<Byte>
Bajty używane jako hasło podczas odszyfrowywania materiału klucza.
- source
- ReadOnlySpan<Byte>
Bajty struktury PKCS#8 EncryptedPrivateKeyInfo w kodowaniu ASN.1-BER.
Zwraca
Zaimportowany klucz.
- Atrybuty
Wyjątki
source Zawartość elementu nie reprezentuje struktury PKCS#8 EncryptedPrivateKeyInfo zakodowanej jako ASN.1-BER.
— lub —
Określone hasło jest niepoprawne.
— lub —
EncryptedPrivateKeyInfo wskazuje, że funkcja wyprowadzania kluczy (KDF) ma być starszą wersją PKCS#12 KDF, która wymaga Charhaseł opartych na hasłach.
— lub —
Wartość nie reprezentuje klucza ML-DSA.
— lub —
source zawiera końcowe dane po strukturze ASN.1.
— lub —
Importowanie specyficzne dla algorytmu nie powiodło się.
Platforma nie obsługuje uczenia maszynowego DSA. Obiekt wywołujący może użyć IsSupported właściwości , aby określić, czy platforma obsługuje usługę ML-DSA.
Dotyczy
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)
- Źródło:
- MLDsa.cs
- Źródło:
- MLDsa.cs
- Źródło:
- MLDsa.cs
Importuje klucz prywatny ML-DSA ze struktury PKCS#8 EncryptedPrivateKeyInfo.
public:
static System::Security::Cryptography::MLDsa ^ 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.MLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source);
public static System.Security.Cryptography.MLDsa 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.MLDsa
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * ReadOnlySpan<byte> -> System.Security.Cryptography.MLDsa
Public Shared Function ImportEncryptedPkcs8PrivateKey (password As ReadOnlySpan(Of Char), source As ReadOnlySpan(Of Byte)) As MLDsa
Parametry
- password
- ReadOnlySpan<Char>
Hasło do użycia podczas odszyfrowywania materiału klucza.
- source
- ReadOnlySpan<Byte>
Bajty struktury PKCS#8 EncryptedPrivateKeyInfo w kodowaniu ASN.1-BER.
Zwraca
Zaimportowany klucz.
- Atrybuty
Wyjątki
source Zawartość elementu nie reprezentuje struktury PKCS#8 EncryptedPrivateKeyInfo zakodowanej jako ASN.1-BER.
— lub —
Określone hasło jest niepoprawne.
— lub —
Wartość nie reprezentuje klucza ML-DSA.
— lub —
source zawiera końcowe dane po strukturze ASN.1.
— lub —
Importowanie specyficzne dla algorytmu nie powiodło się.
Platforma nie obsługuje uczenia maszynowego DSA. Obiekt wywołujący może użyć IsSupported właściwości , aby określić, czy platforma obsługuje usługę ML-DSA.
Dotyczy
ImportEncryptedPkcs8PrivateKey(String, Byte[])
- Źródło:
- MLDsa.cs
- Źródło:
- MLDsa.cs
- Źródło:
- MLDsa.cs
Importuje klucz prywatny ML-DSA ze struktury PKCS#8 EncryptedPrivateKeyInfo.
public:
static System::Security::Cryptography::MLDsa ^ 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.MLDsa ImportEncryptedPkcs8PrivateKey(string password, byte[] source);
public static System.Security.Cryptography.MLDsa 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.MLDsa
static member ImportEncryptedPkcs8PrivateKey : string * byte[] -> System.Security.Cryptography.MLDsa
Public Shared Function ImportEncryptedPkcs8PrivateKey (password As String, source As Byte()) As MLDsa
Parametry
- password
- String
Hasło do użycia podczas odszyfrowywania materiału klucza.
- source
- Byte[]
Bajty struktury PKCS#8 EncryptedPrivateKeyInfo w kodowaniu ASN.1-BER.
Zwraca
Zaimportowany klucz.
- Atrybuty
Wyjątki
password lub source ma wartość null.