aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2022-12-30 23:15:25 +0100
committerGitHub <noreply@github.com>2022-12-30 22:15:25 +0000
commitd86685ac9612c08e33f1d94f7f617d9c0da1b7bd (patch)
treeebfd508ec57baa6df1f9ead511bf0c277728bcc8 /src/Module.zig
parente2d7b2bf339dac811b9ae77638f1d29b2ab32a23 (diff)
downloadzig-d86685ac9612c08e33f1d94f7f617d9c0da1b7bd.tar.gz
zig-d86685ac9612c08e33f1d94f7f617d9c0da1b7bd.zip
sha3: define block_length as the rate, not as the state size (#14132)
In sponge-based constructions, the block size is not the same as the state size. For practical purposes, it's the same as the rate. Size this is a constant for a given type, we don't need to keep a copy of that value in the state itself. Just use the constant directly. This saves some bytes and may even be slightly faster. More importantly: Fixes #14128
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions