MLDsa.SignMu 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
| SignMu(Byte[]) |
Signs the specified externally computed signature mu (μ) value. |
| SignMu(ReadOnlySpan<Byte>) |
Signs the specified externally computed signature mu (μ) value. |
| SignMu(ReadOnlySpan<Byte>, Span<Byte>) |
Signs the specified externally computed signature mu (μ) value, writing the signature into the provided buffer. |
SignMu(Byte[])
- Source:
- MLDsa.cs
Signs the specified externally computed signature mu (μ) value.
public:
cli::array <System::Byte> ^ SignMu(cli::array <System::Byte> ^ externalMu);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] SignMu(byte[] externalMu);
public byte[] SignMu(byte[] externalMu);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.SignMu : byte[] -> byte[]
member this.SignMu : byte[] -> byte[]
Public Function SignMu (externalMu As Byte()) As Byte()
Parameters
- externalMu
- Byte[]
The signature mu value to sign.
Returns
ML-DSA signature for the specified mu value.
- Attributes
Exceptions
externalMu is null.
Applies to
SignMu(ReadOnlySpan<Byte>)
- Source:
- MLDsa.cs
Signs the specified externally computed signature mu (μ) value.
public:
cli::array <System::Byte> ^ SignMu(ReadOnlySpan<System::Byte> externalMu);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] SignMu(ReadOnlySpan<byte> externalMu);
public byte[] SignMu(ReadOnlySpan<byte> externalMu);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.SignMu : ReadOnlySpan<byte> -> byte[]
member this.SignMu : ReadOnlySpan<byte> -> byte[]
Public Function SignMu (externalMu As ReadOnlySpan(Of Byte)) As Byte()
Parameters
- externalMu
- ReadOnlySpan<Byte>
The signature mu value to sign.
Returns
ML-DSA signature for the specified mu value.
- Attributes
Exceptions
The buffer in externalMu is the incorrect length for the signature mu value.
This instance has been disposed.
The instance represents only a public key.
-or-
An error occurred while signing the hash.
The current platform does not support signing with an externally computed mu value.
See also
Applies to
SignMu(ReadOnlySpan<Byte>, Span<Byte>)
- Source:
- MLDsa.cs
Signs the specified externally computed signature mu (μ) value, writing the signature into the provided buffer.
public:
void SignMu(ReadOnlySpan<System::Byte> externalMu, Span<System::Byte> destination);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public void SignMu(ReadOnlySpan<byte> externalMu, Span<byte> destination);
public void SignMu(ReadOnlySpan<byte> externalMu, Span<byte> destination);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.SignMu : ReadOnlySpan<byte> * Span<byte> -> unit
member this.SignMu : ReadOnlySpan<byte> * Span<byte> -> unit
Public Sub SignMu (externalMu As ReadOnlySpan(Of Byte), destination As Span(Of Byte))
Parameters
- externalMu
- ReadOnlySpan<Byte>
The signature mu value to sign.
The buffer to receive the signature. Its length must be exactly SignatureSizeInBytes.
- Attributes
Exceptions
The buffer in externalMu is the incorrect length for the signature mu value.
-or-
The buffer in destination is the incorrect length to receive the signature.
This instance has been disposed.
The instance represents only a public key.
-or-
An error occurred while signing the hash.
The current platform does not support signing with an externally computed mu value.