Edit

Share via


SlhDsa.ImportSlhDsaPrivateKey Method

Definition

Overloads

ImportSlhDsaPrivateKey(SlhDsaAlgorithm, Byte[])

Imports an SLH-DSA private key in the FIPS 205 private key format.

ImportSlhDsaPrivateKey(SlhDsaAlgorithm, ReadOnlySpan<Byte>)

Imports an SLH-DSA private key in the FIPS 205 private key format.

ImportSlhDsaPrivateKey(SlhDsaAlgorithm, Byte[])

Source:
SlhDsa.cs

Imports an SLH-DSA private key in the FIPS 205 private key format.

public:
 static System::Security::Cryptography::SlhDsa ^ ImportSlhDsaPrivateKey(System::Security::Cryptography::SlhDsaAlgorithm ^ algorithm, cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.SlhDsa ImportSlhDsaPrivateKey(System.Security.Cryptography.SlhDsaAlgorithm algorithm, byte[] source);
static member ImportSlhDsaPrivateKey : System.Security.Cryptography.SlhDsaAlgorithm * byte[] -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportSlhDsaPrivateKey (algorithm As SlhDsaAlgorithm, source As Byte()) As SlhDsa

Parameters

algorithm
SlhDsaAlgorithm

The specific SLH-DSA algorithm for this key.

source
Byte[]

The bytes of a FIPS 205 private key.

Returns

The imported key.

Exceptions

algorithm or source is null.

Applies to

ImportSlhDsaPrivateKey(SlhDsaAlgorithm, ReadOnlySpan<Byte>)

Source:
SlhDsa.cs

Imports an SLH-DSA private key in the FIPS 205 private key format.

public:
 static System::Security::Cryptography::SlhDsa ^ ImportSlhDsaPrivateKey(System::Security::Cryptography::SlhDsaAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.SlhDsa ImportSlhDsaPrivateKey(System.Security.Cryptography.SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
static member ImportSlhDsaPrivateKey : System.Security.Cryptography.SlhDsaAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportSlhDsaPrivateKey (algorithm As SlhDsaAlgorithm, source As ReadOnlySpan(Of Byte)) As SlhDsa

Parameters

algorithm
SlhDsaAlgorithm

The specific SLH-DSA algorithm for this key.

source
ReadOnlySpan<Byte>

The bytes of a FIPS 205 private key.

Returns

The imported key.

Exceptions

source has a length that is not valid for the SLH-DSA algorithm.

algorithm is null.

An error occurred while importing the key.

The platform does not support SLH-DSA. Callers can use the IsSupported property to determine if the platform supports SLH-DSA.

Applies to