aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libkeccak/spec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libkeccak/spec.h b/src/libkeccak/spec.h
index ace667c..d9608a6 100644
--- a/src/libkeccak/spec.h
+++ b/src/libkeccak/spec.h
@@ -148,7 +148,7 @@ void libkeccak_spec_rawshake(libkeccak_spec_t* restrict spec, long x, long d)
* @return Zero if error free, a `LIBKECCAK_SPEC_ERROR_*` if an error was found
*/
static inline __attribute__((leaf, nonnull, nothrow, unused, warn_unused_result, pure))
-int libkeccak_spec_check(libkeccak_spec_t* restrict spec)
+int libkeccak_spec_check(const libkeccak_spec_t* restrict spec)
{
long state_size = spec->capacity + spec->bitrate;
if (spec->bitrate <= 0) return LIBKECCAK_SPEC_ERROR_BITRATE_NONPOSITIVE;