PublicKey.GetMLDsaPublicKey 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.
Gets the MLDsa public key, or null if the key is not an ML-DSA key.
public:
System::Security::Cryptography::MLDsa ^ GetMLDsaPublicKey();
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Security.Cryptography.MLDsa? GetMLDsaPublicKey();
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.GetMLDsaPublicKey : unit -> System.Security.Cryptography.MLDsa
Public Function GetMLDsaPublicKey () As MLDsa
Returns
The public key, or null if the key is not an ML-DSA key.
- Attributes
Exceptions
The object represents an ML-DSA public key, but the platform does not support the algorithm.
The key contents are corrupt or could not be read successfully.