usnistgov / ACVP

Industry Working Group on Automated Cryptographic Algorithm Validation
https://csrc.nist.gov/projects/cryptographic-algorithm-validation-program
164 stars 66 forks source link

Finding ACVTS Metadata IDs of Legacy Validation Data #1078

Closed AndrewHYang closed 3 years ago

AndrewHYang commented 3 years ago

We're trying to update some OE information of a CAVP validation by following the wiki. But we're still not able to find any information like below for a CAVP validation. image

May I ask if this feature is available yet?

celic commented 3 years ago

It is available. You must perform a GET on the old validation. The ID can be acquired by looking at the validation on CSRC. The ID is the last element in the URL.

AndrewHYang commented 3 years ago

Thanks. And is it only available for legacy validations starting from "C"?

I got "Internal service error. Contact service provider." when fetching validation A838

celic commented 3 years ago

The ID for A838 is 33434, so you attempted a GET on /acvp/v1/validations/33434?

AndrewHYang commented 3 years ago

Yes. But I was testing with the Demo server. Is it because they don't exist on Demo server?

And can I use PUT to update the OE list of a validation?

celic commented 3 years ago

Correct they do not exist in the database there. When validations come in, we do not add them to the demo database. There is limited validation information available there.

Still the ID not existing should provide meaningful feedback to the user.

On Tue, Dec 1, 2020, 5:03 PM Andrew H. Yang notifications@github.com wrote:

Yes. But I was testing with the Demo server. Is it because they don't exist on Demo server?

And can I use PUT to update the OE list of a validation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/usnistgov/ACVP/issues/1078#issuecomment-736848833, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATQXEI4NQUUGBO5O3RWHQDSSVR4DANCNFSM4UAFGBLA .

AndrewHYang commented 3 years ago

I'm getting

"error": "Internal service error. Contact service provider."

celic commented 3 years ago

On the PUT you are getting the error? The GET works just fine for me. Can you send me the data you are trying to PUT?

AndrewHYang commented 3 years ago

Sorry. I was talking about when I tried GET on validation not existing will get above error. I have not tried PUT yet.

I was asking whether I can use PUT to update the OE list before editing a validation. Just in case.

And if that's possible, then I think this issue can be closed. Thanks

celic commented 3 years ago

Yes you can use a PUT to update the OE as long as you are able to find the ID. The method I explained works but may be a little cumbersome. I was able to confirm this yesterday.