Taal

MLDsa.ImportPkcs8PrivateKey Methode

Definitie

Hiermee importeert u een ML-DSA persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.

Overloads

Name Description
ImportPkcs8PrivateKey(Byte[])

Hiermee importeert u een ML-DSA persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.

ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)

Hiermee importeert u een ML-DSA persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.

ImportPkcs8PrivateKey(Byte[])

Bron:
MLDsa.cs
Bron:
MLDsa.cs
Bron:
MLDsa.cs

Hiermee importeert u een ML-DSA persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.

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

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:
MLDsa.cs
Bron:
MLDsa.cs
Bron:
MLDsa.cs

Hiermee importeert u een ML-DSA persoonlijke sleutel uit een PKCS#8 PrivateKeyInfo-structuur.

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

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-DSA sleutel.

– of –

source bevat volggegevens na de ASN.1-structuur.

– of –

Het algoritmespecifieke importeren is mislukt.

Het platform biedt geen ondersteuning voor ML-DSA. Bellers kunnen de IsSupported eigenschap gebruiken om te bepalen of het platform ML-DSA ondersteunt.

Van toepassing op