SlhDsa.ImportSlhDsaPublicKey Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ImportSlhDsaPublicKey(SlhDsaAlgorithm, Byte[]) | Imports an SLH-DSA public key in the FIPS 205 public key format. | 
| ImportSlhDsaPublicKey(SlhDsaAlgorithm, ReadOnlySpan<Byte>) | Imports an SLH-DSA public key in the FIPS 205 public key format. | 
ImportSlhDsaPublicKey(SlhDsaAlgorithm, Byte[])
- Source:
- SlhDsa.cs
Imports an SLH-DSA public key in the FIPS 205 public key format.
public:
 static System::Security::Cryptography::SlhDsa ^ ImportSlhDsaPublicKey(System::Security::Cryptography::SlhDsaAlgorithm ^ algorithm, cli::array <System::Byte> ^ source);public static System.Security.Cryptography.SlhDsa ImportSlhDsaPublicKey(System.Security.Cryptography.SlhDsaAlgorithm algorithm, byte[] source);static member ImportSlhDsaPublicKey : System.Security.Cryptography.SlhDsaAlgorithm * byte[] -> System.Security.Cryptography.SlhDsaPublic Shared Function ImportSlhDsaPublicKey (algorithm As SlhDsaAlgorithm, source As Byte()) As SlhDsaParameters
- algorithm
- SlhDsaAlgorithm
The specific SLH-DSA algorithm for this key.
- source
- Byte[]
The bytes of a FIPS 205 public key.
Returns
The imported key.
Exceptions
algorithm or source is null.
Applies to
ImportSlhDsaPublicKey(SlhDsaAlgorithm, ReadOnlySpan<Byte>)
- Source:
- SlhDsa.cs
- Source:
- SlhDsa.cs
Imports an SLH-DSA public key in the FIPS 205 public key format.
public:
 static System::Security::Cryptography::SlhDsa ^ ImportSlhDsaPublicKey(System::Security::Cryptography::SlhDsaAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);public static System.Security.Cryptography.SlhDsa ImportSlhDsaPublicKey(System.Security.Cryptography.SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source);static member ImportSlhDsaPublicKey : System.Security.Cryptography.SlhDsaAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.SlhDsaPublic Shared Function ImportSlhDsaPublicKey (algorithm As SlhDsaAlgorithm, source As ReadOnlySpan(Of Byte)) As SlhDsaParameters
- algorithm
- SlhDsaAlgorithm
The specific SLH-DSA algorithm for this key.
- source
- ReadOnlySpan<Byte>
The bytes of a FIPS 205 public 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.