Språk

MLKem.ImportPkcs8PrivateKey Metod

Definition

Importerar en ML-KEM privat nyckel från en PKCS#8 PrivateKeyInfo-struktur.

Överlagringar

Name Description
ImportPkcs8PrivateKey(Byte[])

Importerar en ML-KEM privat nyckel från en PKCS#8 PrivateKeyInfo-struktur.

ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)

Importerar en ML-KEM privat nyckel från en PKCS#8 PrivateKeyInfo-struktur.

ImportPkcs8PrivateKey(Byte[])

Källa:
MLKem.cs
Källa:
MLKem.cs
Källa:
MLKem.cs

Importerar en ML-KEM privat nyckel från en 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

Parametrar

source
Byte[]

Byte för en PKCS#8 PrivateKeyInfo-struktur i ASN.1-BER-kodningen.

Returer

Den importerade nyckeln.

Attribut

Undantag

source är null

Gäller för

ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)

Källa:
MLKem.cs
Källa:
MLKem.cs
Källa:
MLKem.cs

Importerar en ML-KEM privat nyckel från en 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

Parametrar

source
ReadOnlySpan<Byte>

Byte för en PKCS#8 PrivateKeyInfo-struktur i ASN.1-BER-kodningen.

Returer

Den importerade nyckeln.

Attribut

Undantag

Innehållet i source representerar inte en ASN.1-BER-kodad PKCS#8 PrivateKeyInfo-struktur.

-eller-

PrivateKeyInfo-värdet representerar inte en ML-KEM nyckel.

-eller-

source innehåller avslutande data efter ASN.1-strukturen.

-eller-

Den algoritmspecifika importen misslyckades.

Plattformen stöder inte ML-KEM. Anropare kan använda egenskapen IsSupported för att avgöra om plattformen stöder ML-KEM.

Gäller för