usnistgov / ACVP-Server

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

ACVP-AES-XTS occasionally provides out of range sequence numbers #354

Closed v-roackerman closed 1 month ago

v-roackerman commented 2 months ago

environment Demo

testSessionId 535961

vsId 2509629

Algorithm registration { "algorithm": "ACVP-AES-XTS", "revision": "2.0", "direction": [ "encrypt", "decrypt" ], "keyLen": [ 128, 256 ], "payloadLen": [ 512, 4096, 65536 ], "tweakMode": [ "number" ], "dataUnitLenMatchesPayload": true }

Endpoint in which the error is experienced https://[acvpUrl]/acvp/[endpoint] GET Unsure what you mean.

Expected behavior A sequence number in a range between 0 and 255 be provided.

Additional context ACVP-AES-XTS ACVP documentation dictates that when the tweakMode field is set to “number”, the sequence number shall be between 0 and 255. We sometimes get 256 from the NIST demo server forcing our code to exit.

https://pages.nist.gov/ACVP/draft-celi-acvp-symmetric.html#name-test-groups

jbrock24 commented 2 months ago

I found the issue and have fixed it. It will go out with the next version. We'll post here when it's available on demo. Thanks for reporting the issue!

livebe01 commented 1 month ago

Hi @v-roackerman, we just deployed the fix for this issue to Demo as part of the v1.1.0.36 release. Are you be able to test it to confirm? Thank you.

v-roackerman commented 1 month ago

It is rare that I see it. In fact, after the first time, it was two more months before I saw it again to provide this treport. I will run it regardless as part of my job and report if not fixed.

livebe01 commented 1 month ago

Okay. It was a very straightforward fix. Changing a 256 to a 255.

Ben

On Oct 7, 2024, at 1:10 PM, v-roackerman @.***> wrote:

It is rare that I see it. In fact, after the first time, it was two more months before I saw it again to provide this treport. I will run it regardless as part of my job and report if not fixed.

— Reply to this email directly, view it on GitHubhttps://github.com/usnistgov/ACVP-Server/issues/354#issuecomment-2397466446, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGMA5AXYF3OCTRAT4G6J73TZ2K6A7AVCNFSM6AAAAABNTCPJCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGQ3DMNBUGY. You are receiving this because you commented.Message ID: @.***>

livebe01 commented 1 month ago

The fix for this issue has been deployed to ACVTS Prod as part of the v1.1.0.36 release.