MLKem.ImportPkcs8PrivateKey Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee importeert u een ML-KEM persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.
Overloads
| Naam | Description |
|---|---|
| ImportPkcs8PrivateKey(Byte[]) |
Hiermee importeert u een ML-KEM persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur. |
| ImportPkcs8PrivateKey(ReadOnlySpan<Byte>) |
Hiermee importeert u een ML-KEM persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur. |
ImportPkcs8PrivateKey(Byte[])
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
Hiermee importeert u een ML-KEM persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.
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
Parameters
- source
- Byte[]
De bytes van een PKCS#8 PrivateKeyInfo-structuur in de ASN.1-BER-codering.
Retouren
De geïmporteerde sleutel.
- Kenmerken
Uitzonderingen
source Is null
Van toepassing op
ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
Hiermee importeert u een ML-KEM persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.
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
Parameters
- source
- ReadOnlySpan<Byte>
De bytes van een PKCS#8 PrivateKeyInfo-structuur in de ASN.1-BER-codering.
Retouren
De geïmporteerde sleutel.
- Kenmerken
Uitzonderingen
De inhoud van source deze indeling vertegenwoordigt geen ASN.1-BER-gecodeerde PKCS#8 PrivateKeyInfo-structuur.
– of –
De waarde PrivateKeyInfo vertegenwoordigt geen ML-KEM sleutel.
– of –
source bevat volggegevens na de ASN.1-structuur.
– of –
Het algoritmespecifieke importeren is mislukt.
Het platform biedt geen ondersteuning voor ML-KEM. Bellers kunnen de IsSupported eigenschap gebruiken om te bepalen of het platform ML-KEM ondersteunt.