Edit

Share via


CompositeMLDsa.ImportSubjectPublicKeyInfo Method

Definition

Overloads

ImportSubjectPublicKeyInfo(Byte[])

Imports a Composite ML-DSA public key from an X.509 SubjectPublicKeyInfo structure.

ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>)

Imports a Composite ML-DSA public key from an X.509 SubjectPublicKeyInfo structure.

ImportSubjectPublicKeyInfo(Byte[])

Source:
CompositeMLDsa.cs

Imports a Composite ML-DSA public key from an X.509 SubjectPublicKeyInfo structure.

public:
 static System::Security::Cryptography::CompositeMLDsa ^ ImportSubjectPublicKeyInfo(cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.CompositeMLDsa ImportSubjectPublicKeyInfo(byte[] source);
static member ImportSubjectPublicKeyInfo : byte[] -> System.Security.Cryptography.CompositeMLDsa
Public Shared Function ImportSubjectPublicKeyInfo (source As Byte()) As CompositeMLDsa

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:
CompositeMLDsa.cs

Imports a Composite ML-DSA public key from an X.509 SubjectPublicKeyInfo structure.

public:
 static System::Security::Cryptography::CompositeMLDsa ^ ImportSubjectPublicKeyInfo(ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.CompositeMLDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source);
static member ImportSubjectPublicKeyInfo : ReadOnlySpan<byte> -> System.Security.Cryptography.CompositeMLDsa
Public Shared Function ImportSubjectPublicKeyInfo (source As ReadOnlySpan(Of Byte)) As CompositeMLDsa

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 a Composite ML-DSA key.

-or-

source contains trailing data after the ASN.1 structure.

-or-

The algorithm-specific import failed.

-or-

The specified Composite ML-DSA algorithm is not supported.

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

Applies to