usnistgov / ACVP-Server

A repository tracking releases of NIST's ACVP server. See www.github.com/usnistgov/ACVP for the protocol.
39 stars 14 forks source link

RSA-signaturePrimitive-2.0 registration fails #255

Closed sandor-szendro-i4p closed 1 year ago

sandor-szendro-i4p commented 1 year ago

environment Demo

testSessionId

vsId

Algorithm registration

 "algorithms":[
      {
        "revision":"2.0",
        "algorithm":"RSA",
        "mode":"signaturePrimitive",
        "pubExpMode":"random",
        "keyFormat":[
          "standard"
        ],
        "modulus":[
          2048,
          3072,
          4096
        ]
      }
    ]

Endpoint in which the error is experienced https://demo.acvts.nist.gov:443/acvp/v1/testSessions POST

Expected behavior The algorithm should register, but it returns with the following error object:

  {
    "error": "Validation error(s) on JSON payload.",
    "context": [
      "Unable to map RSA-signaturePrimitive-2.0 - index 0 to an internal algorithm id."
    ]
  }

Additional context RSA-signaturePrimitive-1.0 registration is successful, but we 2.0 registration fails with the error above.

livebe01 commented 1 year ago

Please see https://github.com/usnistgov/ACVP-Server/issues/245

szendros commented 1 year ago

Thanks.