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

Unable to map KTS-IFC-Sp800-56Br2 #281

Closed GlennUL closed 11 months ago

GlennUL commented 11 months ago

environment Demo and Prod

Algorithm registration { "algorithms": [ { "prereqVals": [ { "algorithm": "CMAC", "valValue": "" }, { "algorithm": "DRBG", "valValue": "" }, { "algorithm": "ECDSA", "valValue": "" }, { "algorithm": "HMAC", "valValue": "" }, { "algorithm": "SHA", "valValue": "" }, { "algorithm": "KMAC", "valValue": "" }, { "algorithm": "SP800-108", "valValue": "" }, { "algorithm": "RSA", "valValue": "" }, { "algorithm": "RSADP", "valValue": "" } ], "algorithm": "KTS-IFC", "revision": "Sp800-56Br2", "mode": "", "iutId": "A1B2C3D4E5", "keyGenerationMethods": [ "rsakpg1-basic" ], "modulo": [ 2048, 3072, 4096, 6144, 8192 ], "function": [ "keyPairGen", "partialVal" ], "scheme": { "KTS-OAEP-basic": { "kasRole": [ "initiator", "responder" ], "keyGenerationMethods": {}, "ktsMethod": { "hashAlgs": [], "supportsNullAssociatedData": true, "associatedDataPattern": "l||uPartyInfo||vPartyInfo", "encoding": [ "concatenation" ] }, "macMethods": {}, "l": 512 } }, "fixedPubExp": "010001" } ], "encryptAtRest": false, "isSample": false }

Expected behavior Successful generation of vectors.

Additional context When trying to create a test session for KTS-IFC we receive the following error message: Validation error(s) on JSON payload. : ['Unable to map KTS-IFC-Sp800-56Br2 - index 0 to an internal algorithm id.']

livebe01 commented 11 months ago

Hi Glen, can you try setting mode to null instead of setting it to the empty string? Or omitting mode altogether?

GlennUL commented 11 months ago

Hi Ben, Thanks for that! I was able to generate vectors once the mode field was removed.