ensure valid cSHAKE length#46
Conversation
|
Section 3 of NIST-SP800-185 says:
So, I would prefer to just follow that rather than forbidding it here. Additionally, the output length parameter is defined as a number of bits, and the output is well-defined in that case. However, we don't clearly define what to do here, since we return a byte sequence rather than a bit sequence. But, we already have a convenient helper for that, namely a byte sequence containing a bit sequence. So, we can just use that instead of forbidding this as well, IMHO. I'll write a patch for that. |
|
cc @Frosne as this was originally your request for turboshake |
|
Ok! |
|
(Closing in favor of #51, but let me know if there are any objections to the text there ofc 😊) |
Ensure's valid cSHAKE length in our op steps.
Originally posted by @panva in #41 (comment)
Preview | Diff