SlhDsa.ImportSubjectPublicKeyInfo 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
| ImportSubjectPublicKeyInfo(Byte[]) |
Imports an SLH-DSA public key from an X.509 SubjectPublicKeyInfo structure. |
| ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>) |
Imports an SLH-DSA public key from an X.509 SubjectPublicKeyInfo structure. |
ImportSubjectPublicKeyInfo(Byte[])
- Source:
- SlhDsa.cs
Imports an SLH-DSA public key from an X.509 SubjectPublicKeyInfo structure.
public:
static System::Security::Cryptography::SlhDsa ^ ImportSubjectPublicKeyInfo(cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.SlhDsa ImportSubjectPublicKeyInfo(byte[] source);
static member ImportSubjectPublicKeyInfo : byte[] -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportSubjectPublicKeyInfo (source As Byte()) As SlhDsa
Parameters
- source
- Byte[]
The bytes of an X.509 SubjectPublicKeyInfo structure in the ASN.1-DER encoding.
Returns
The imported key.
Exceptions
source is null.
Applies to
ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>)
- Source:
- SlhDsa.cs
- Source:
- SlhDsa.cs
Imports an SLH-DSA public key from an X.509 SubjectPublicKeyInfo structure.
public:
static System::Security::Cryptography::SlhDsa ^ ImportSubjectPublicKeyInfo(ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.SlhDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source);
static member ImportSubjectPublicKeyInfo : ReadOnlySpan<byte> -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportSubjectPublicKeyInfo (source As ReadOnlySpan(Of Byte)) As SlhDsa
Parameters
- source
- ReadOnlySpan<Byte>
The bytes of an X.509 SubjectPublicKeyInfo structure in the ASN.1-DER encoding.
Returns
The imported key.
Exceptions
The contents of source do not represent an ASN.1-DER-encoded X.509 SubjectPublicKeyInfo structure.
-or-
The SubjectPublicKeyInfo value does not represent an SLH-DSA key.
-or-
source contains trailing data after the ASN.1 structure.
-or-
The algorithm-specific import failed.
The platform does not support SLH-DSA. Callers can use the IsSupported property to determine if the platform supports SLH-DSA.