aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-04 15:05:28 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-04 15:17:34 +0100
commitf5aeeebb46159048148d779c1a1278bf1110706a (patch)
tree3d8b3d7e3574fab312acd0f1f48499cdffea36a0
parentcheck that the state size is a multiple of 25 (diff)
downloadlibkeccak-f5aeeebb46159048148d779c1a1278bf1110706a.tar.gz
libkeccak-f5aeeebb46159048148d779c1a1278bf1110706a.tar.bz2
libkeccak-f5aeeebb46159048148d779c1a1278bf1110706a.tar.xz
forgot const qualifier
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-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;