Closed jvdsn closed 1 month ago
I believe the following is happening for "contextLength":[ 0 ],
:
var min = group.ContextLength.GetDomainMinMax().Minimum == 0 ? 1 : group.ContextLength.GetDomainMinMax().Minimum;
var max = group.ContextLength.GetDomainMinMax().Maximum;
var lengths = group.ContextLength.GetRandomValues(min, max, NumberOfTestCasesToGenerate - 2).ToList();
Because of the ternary, min = 1
and max = 0
. In GetRandomValues
:
public IEnumerable<int> GetRandomValues(int min, int max, int numberOfValuesPerSegment)
{
if (min > max) // 1 > 0
{
throw new ArgumentException($"{nameof(min)} must be less than or equal to {nameof(max)}");
}
...
}
This explains the internal server error.
@jbrock24 do you need any help debugging this? I'd like this to be fixed as we have a module (specifically OpenSSL 3.0/3.1) which does not support the context for Ed25519. Because of this, Ed25519 cannot be approved (as it cannot be ACVP tested).
Hi @jvdsn, we have the fix for this prepared and it will be included in the next hotfix for Demo. We'd like to deploy the hotfix near the end of this week or the beginning of next.
Thank you!
The fix for this issue is now on Demo as of today's hotfix deployment.
Confirmed fixed.
For example, the following registration:
results in the following response:
On the other hand, the following registration:
results in test vectors that look like this:
I think the logic here must be incorrect: https://github.com/usnistgov/ACVP-Server/blob/master/gen-val/src/generation/src/NIST.CVP.ACVTS.Libraries.Generation/EDDSA/v1_0/SigGen/TestCaseGenerator.cs#L30-L39