usnistgov / ACVP-Server

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

Error in vector set after submission without information #239

Open AlexThurston opened 1 year ago

AlexThurston commented 1 year ago

environment Demo

testSessionId 333864

vsId 1321671

Algorithm registration KAS-ECC SP800-56AR3

Endpoint in which the error is experienced After submitting responses, the vector set state is error but the contents don't specify anything about what to do about it.

GET testSessions/333864/vectorSets/1321671 or GET testSessions/333864/vectorSets/1321671/results

The response is:

[{"acvVersion":"1.0"},{"error":"General exception. Contact service provider."}]

Expected behaviour If there is an error, that the response is in someway actionable.

AlexThurston commented 1 year ago

This might be similar to #233

livebe01 commented 1 year ago

Hi @AlexThurston, can you share the registration for this one?

AlexThurston commented 1 year ago
[
    {
        "scheme": {
            "dhEphem": {
                "kasRole": [
                    "initiator",
                    "responder"
                ]
            }
        },
        "revision": "Sp800-56Ar3",
        "algorithm": "KAS-FFC-SSC",
        "hashFunctionZ": "SHA2-256",
        "domainParameterGenerationMethods": [
            "FC",
            "FB"
        ]
    },
    {
        "iutId": "CAFECAFE",
        "scheme": {
            "ephemeralUnified": {
                "l": 1024,
                "kasRole": [
                    "initiator",
                    "responder"
                ],
                "kdfMethods": {
                    "oneStepKdf": {
                        "encoding": [
                            "concatenation"
                        ],
                        "auxFunctions": [
                            {
                                "macSaltMethods": [],
                                "auxFunctionName": "SHA2-256"
                            },
                            {
                                "macSaltMethods": [
                                    "default"
                                ],
                                "auxFunctionName": "SHA2-384"
                            }
                        ],
                        "fixedInfoPattern": "literal[0123456789ABCDEF]||uPartyInfo||vPartyInfo||context||algorithmId||label||l"
                    }
                }
            }
        },
        "function": [
            "partia lVal"
        ],
        "revision": "Sp800-56Ar3",
        "algorithm": "KAS-ECC",
        "domainParameterGenerationMethods": [
            "P-224",
            "P-256",
            "P-384",
            "P-521",
            "K-233",
            "K-283",
            "K-409",
            "K-571",
            "B-233",
            "B-283",
            "B-409",
            "B-571"
        ]
    },
    {
        "mode": "keyGen",
        "revision": "1.0",
        "algorithm": "DSA",
        "capabilities": [
            {
                "l": 2048,
                "n": 224
            },
            {
                "l": 2048,
                "n": 256
            },
            {
                "l": 3072,
                "n": 256
            }
        ]
    },
    {
        "scheme": {
            "dhEphem": {
                "kasRole": [
                    "initiator",
                    "responder"
                ]
            }
        },
        "revision": "Sp800-56Ar3",
        "algorithm": "KAS-FFC-SSC",
        "hashFunctionZ": "SHA2-224",
        "domainParameterGenerationMethods": [
            "FC",
            "FB"
        ]
    }
]
jbrock24 commented 9 months ago

Hi @AlexThurston, Do you know if v1.1.0.28](https://github.com/usnistgov/ACVP-Server/releases/tag/v1.1.0.28) fixed the issue, or is this still something we need to look deeper into? Apologies for the timeline. If not, is it OK to close this?