usnistgov / ACVP-Server

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

SHA LDT #314

Closed GlennUL closed 3 months ago

GlennUL commented 4 months ago

environment Demo

testSessionId 490087

vsId 2184938

Algorithm registration { "messageLength": [ 256, { "min": 8, "max": 65536, "increment": 8 } ], "performLargeDataTest": [ 1 ], "algorithm": "SHA2-256", "revision": "1.0" }

Additional context We have a vendor who is trying to do the SHA Large Data Test and is encountering an issue with it. They believe the "fullLength" value in the vector is set to bytes and not bits. When they test the vector they are able to get the correct result when processing as bytes but when run as bits the results don't match the expected result. Can you confirm if there is an issue in generation or if it's something the vendor needs to look further in to? Thank you.

jbrock24 commented 4 months ago

So for this calculation we use the bits in a GiB to determine the number of iterations.

Are they calculating bits in GB instead of GiB? This is discussed in the documentation - section 7.2. The LargeBitString class is used to pass around all this - ContentLength and FullLength are used throughout, these are all in bits.

GlennUL commented 4 months ago

Thanks for the info Joel. I have passed this along.