diff options
Diffstat (limited to '')
-rw-r--r-- | c/sha3.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -787,7 +787,7 @@ byte* sha3_digest(byte* restrict_ msg, long msglen, long bits, char* restrict_ s olen = n; if (withReturn) { - ni = min(25, rr); + ni = rr / ww; while (olen > 0) { i = 0; @@ -865,7 +865,7 @@ byte* sha3_squeeze(void) rc = (byte*)malloc((nn = (n + 7) >> 3) * sizeof(byte)); olen = n; j = ptr = 0; - ni = (25 < r >> 3) ? 25 : (r >> 3); + ni = (r >> 3) / ww; while (olen > 0) { |