[API Proposal]: MLDsa SignData with OverloadResolutionPriority
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
### Background and motivation
Add OverloadResolutionPriority attribute to SignData method on MLDsa.
### API Proposal
```diff
namespace System.Collections.Generic;
public partial class MLDsa
{
+[OverloadResolutionPriority(1)]
public void SignData(ReadOnlySpan data, Span destination, ReadOnlySpan context = default)
}
```
### API Usage
```csharp
using var mldsa = MLDsa.GenerateKey(MLDsaAlgorithm.MLDsa44);
var message = new byte[1];
var signature = new byte[MLDsaAlgorithm.MLDsa44.SignatureSizeInBytes];
mldsa .SignData(message, signature); // Should pick up the ROS overloads
```
### Alternative Designs
_No response_
### Risks
_No response_
Contributor guide
Research direction
Start from the MLDsa SignData API declaration and review how OverloadResolutionPriority is applied to overloads. Validate the proposed attribute and overload selection with the API usage example, including the MLDsa44 key, message, and signature buffers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, cryptography
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100