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

"Decryption Failed" when retrieving KTS-IFC validation results #29

Closed
tobyp opened this issue Nov 2, 2020 · 3 comments
Closed

"Decryption Failed" when retrieving KTS-IFC validation results #29

tobyp opened this issue Nov 2, 2020 · 3 comments
Assignees

Comments

@tobyp
Copy link

tobyp commented Nov 2, 2020

environment
Demo

testSessionId
123980

vsId
369802, 369803

Algorithm registration

  {
    "algorithm": "KTS-IFC",
    "revision": "Sp800-56Br2",
    "prereqVals": [{"algorithm":"DRBG","valValue":"same"},{"algorithm":"RSA","valValue":"same"},{"algorithm":"SHA","valValue":"same"}],
    "function": ["keyPairGen", "partialVal"],
    "iutId": "012345678",
    "keyGenerationMethods": ["rsakpg1-crt"],
    "modulo": [2048, 3072, 4096],
    "fixedPubExp": "010001",
    "scheme": {
      "KTS-OAEP-basic": {
        "kasRole": ["initiator","responder"],
        "ktsMethod": {
          "hashAlgs": ["SHA2-256"],
          "supportsNullAssociatedData": true,
          "associatedDataPattern": "label",
          "encoding": ["concatenation"]
        },
        "l": 256
      }
    }
  }

and the same with "hashAlgs": ["SHA2-384"] and "l": 384

Endpoint in which the error is experienced
GET acvp/v1/testSessions/123980/vectorSets/369802/results and GET acvp/v1/testSessions/123980/vectorSets/369803/results

Expected behavior
Information about the pass/fail state of each test case

Additional Context

  • The response is merely [{"acvVersion": "1.0"}, {"error": "Decryption failed."}]
  • POST-ing the responses did not return any errors
@tobyp tobyp changed the title "Decryption Failed" when retrieving "Decryption Failed" when retrieving KTS-IFC validation results Nov 2, 2020
@Kritner
Copy link
Contributor

Kritner commented Nov 2, 2020

I'll need to put in a fix for this on our end. Basically I was taking what the SP stated and when an "Decrypt Failure" occurred, stopping all processing. While that works for the crypto implementation itself, it doesn't work out so great when the test case responses cause a decrypt failure 😅

@Kritner Kritner self-assigned this Nov 2, 2020
@Kritner
Copy link
Contributor

Kritner commented Nov 13, 2020

This change will be on demo from release v1.1.0.14 after the scheduled maintenance.

@Kritner
Copy link
Contributor

Kritner commented Dec 1, 2020

This change is on production in release v1.1.0.14

@Kritner Kritner closed this as completed Dec 1, 2020
celic pushed a commit that referenced this issue Jan 7, 2022
…nt for when the deferred crypto resolver cannot successfully complete the crypto.

- #29
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

2 participants