Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"RSA-sigVer-FIPS186-5: General exception. Contact service provider." #373

Open
mwcw opened this issue Dec 3, 2024 · 1 comment
Open
Assignees

Comments

@mwcw
Copy link

mwcw commented Dec 3, 2024

environment
DEMO

testSessionId
None allocated before failure

vsId

Algorithm registration

[
  {
    "acvVersion": "1.0"
  },
  {
    "isSample": false,
    "algorithms": [
      {
        "algorithm": "RSA",
        "mode": "sigVer",
        "revision": "FIPS186-5",
        "prereqVals": [
          {
            "algorithm": "DRBG",
            "valValue": "same"
          },
          {
            "algorithm": "SHA",
            "valValue": "same"
          }
        ],
        "pubExpMode": "random",
        "capabilities": [
          {
            "sigType": "pss",
            "properties": [
              {
                "modulo": 2048,
                "hashPair": [
                  {
                    "hashAlg": "SHA-1",
                    "saltLen": 20
                  },
                  {
                    "hashAlg": "SHA2-224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA2-256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA2-384",
                    "saltLen": 48
                  },
                  {
                    "hashAlg": "SHA2-512",
                    "saltLen": 64
                  },
                  {
                    "hashAlg": "SHA2-512/224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA2-512/256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA3-224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA3-256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA3-384",
                    "saltLen": 48
                  },
                  {
                    "hashAlg": "SHA3-512",
                    "saltLen": 64
                  }
                ]
              },
              {
                "modulo": 3072,
                "hashPair": [
                  {
                    "hashAlg": "SHA-1",
                    "saltLen": 20
                  },
                  {
                    "hashAlg": "SHA2-224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA2-256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA2-384",
                    "saltLen": 48
                  },
                  {
                    "hashAlg": "SHA2-512",
                    "saltLen": 64
                  },
                  {
                    "hashAlg": "SHA2-512/224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA2-512/256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA3-224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA3-256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA3-384",
                    "saltLen": 48
                  },
                  {
                    "hashAlg": "SHA3-512",
                    "saltLen": 64
                  }
                ]
              },
              {
                "modulo": 4096,
                "hashPair": [
                  {
                    "hashAlg": "SHA-1",
                    "saltLen": 20
                  },
                  {
                    "hashAlg": "SHA2-224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA2-256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA2-384",
                    "saltLen": 48
                  },
                  {
                    "hashAlg": "SHA2-512",
                    "saltLen": 64
                  },
                  {
                    "hashAlg": "SHA2-512/224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA2-512/256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA3-224",
                    "saltLen": 28
                  },
                  {
                    "hashAlg": "SHA3-256",
                    "saltLen": 32
                  },
                  {
                    "hashAlg": "SHA3-384",
                    "saltLen": 48
                  },
                  {
                    "hashAlg": "SHA3-512",
                    "saltLen": 64
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
]

Endpoint in which the error is experienced
https://[acvpUrl]/acvp/[endpoint] GET

Expected behavior

A set of vectors.

Additional context

pkcs1v1.5 works as long as we don't add MGF1 and we remove SHA-1

@livebe01 livebe01 self-assigned this Dec 4, 2024
@jbrock24
Copy link
Collaborator

jbrock24 commented Jan 24, 2025

Hi @mwcw - there was a minor bug where the validator wasn't checking for a null before a value. This has been fixed and it will go out with the next release. Thanks for letting us know, we will close reply here once the update is available.

Here's your error so you can run again beforehand.

Generator failed to complete with status code: ParameterValidationError, Parameter validator error. Parameters do not match the required parameters for the algorithm, check the appropriate values., No mask generation function found;Invalid Hash Algorithms supplied: SHA-1;No mask generation function found;Invalid Hash Algorithms supplied: SHA-1;No mask generation function found;Invalid Hash Algorithms supplied: SHA-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants