Closed smuellerDD closed 1 year ago
Hi, @smuellerDD, per Table 3 of the spec, messageLength is not a valid registration property for SHAKE.
I'm not seeing the issue with the output length. See tcId 217 for 1237210 and tcId 197 for 1237210 to see the max output lengths being tested for the respective vector sets.
Am Montag, 21. November 2022, 18:25:29 CET schrieb livebe01:
Hi livebe01,
Hi, @smuellerDD, per Table 3 of the spec, messageLength is not a valid registration property for SHAKE.
Thanks for the note
I'm not seeing the issue with the output length. See tcId 217 for 1237210 and tcId 197 for 1237210 to see the max output lengths being tested for the respective vector sets.
The request contains the outlen to be
"outputLen":[ { "min":1088, "max":10880, "increment":1088 }
but I see other outlens like 128 bits.
Ciao Stephan
Take a look at the Test Types and Test Coverage, the VOT bullet in particular.
Am Montag, 21. November 2022, 19:10:44 CET schrieb livebe01:
Hi livebe01,
Take a look at the Test Types and Test Coverage, the VOT bullet in particular.
Yes, the VOT vectors do provide the right sizes. But the others do not. So, if you have a specific SHAKE use case where SHAKE is dedicated to this use case and will only generate output for this use case (e.g. in rate chunks), it will pass VOT, but fail AFT and MCT.
Ciao Stephan
Sure, that makes sense @smuellerDD. Do you have such an implementation/such a need? @celic, do you have any additional thoughts on this case?
Am Dienstag, 22. November 2022, 13:36:51 CET schrieb livebe01:
Hi livebe01,
Sure, that makes sense @smuellerDD. Do you have such an implementation/such a need? @celic, do you have any additional thoughts on this case?
I thought I had but then I found that the implementation has more freedom and I do not need the limitations.
But I am playing with Kyber and Dilithium which internally uses SHAKE 128 and 256 for well-defined input/output sizes. The assembler implementations I play with are specially crafted with 4 pipelines for SIMD operations. I can fathom that vendors may further streamline such implementation that only supports very special input/output sizes.
Ciao Stephan
That makes sense. Thanks @smuellerDD.
environment Demo
testSessionId 321960
vsId 1237210, 1237211
Algorithm registration SHAKE 128:
SHAKE256:
Returned data: