@@ -402,10 +402,11 @@ _SHAKE_digest(SHA3object *self, unsigned long digestlen, int hex) |
|
|
402 |
402 |
* - the algorith is not shake -- not the case here |
403 |
403 |
* - the output length is zero -- we follow the existing behavior and return |
404 |
404 |
* an empty digest, without raising an error */ |
405 |
|
-if (digestlen > 0) |
406 |
|
-Hacl_Streaming_Keccak_squeeze(self->hash_state, digest, digestlen); |
|
405 |
+if (digestlen > 0) { |
|
406 |
+Hacl_Streaming_Keccak_squeeze(self->hash_state, digest, digestlen); |
|
407 |
+ } |
407 |
408 |
if (hex) { |
408 |
|
- result = _Py_strhex((const char *)digest, digestlen); |
|
409 |
+result = _Py_strhex((const char *)digest, digestlen); |
409 |
410 |
} else { |
410 |
411 |
result = PyBytes_FromStringAndSize((const char *)digest, |
411 |
412 |
digestlen); |