aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-15 04:51:45 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-15 04:51:45 +0200
commit1e1ed3c674a01b6336a570db9bc30a22c2101c34 (patch)
tree97c7fde138723da38016a5c0844dd61664e51efd
parentupdate todo (diff)
downloadlibkeccak-1e1ed3c674a01b6336a570db9bc30a22c2101c34.tar.gz
libkeccak-1e1ed3c674a01b6336a570db9bc30a22c2101c34.tar.bz2
libkeccak-1e1ed3c674a01b6336a570db9bc30a22c2101c34.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/libkeccak/spec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libkeccak/spec.h b/src/libkeccak/spec.h
index 3faecf2..fe58c08 100644
--- a/src/libkeccak/spec.h
+++ b/src/libkeccak/spec.h
@@ -173,7 +173,7 @@ static inline
int libkeccak_spec_check(const libkeccak_spec_t* restrict spec)
{
long state_size = spec->capacity + spec->bitrate;
- int_fast32_t word_size = (int_fast32_t)(state_size / 25);
+ int32_t word_size = (int32_t)(state_size / 25);
if (spec->bitrate <= 0) return LIBKECCAK_SPEC_ERROR_BITRATE_NONPOSITIVE;
if (spec->bitrate % 8) return LIBKECCAK_SPEC_ERROR_BITRATE_MOD_8;
if (spec->capacity <= 0) return LIBKECCAK_SPEC_ERROR_CAPACITY_NONPOSITIVE;
@@ -184,7 +184,7 @@ int libkeccak_spec_check(const libkeccak_spec_t* restrict spec)
if (word_size % 8) return LIBKECCAK_SPEC_ERROR_WORD_MOD_8;
/* `(x & -x) != x` assumes two's complement, which of course is always
- * satisfied by GCC, however C99 guarantees that `int_fast32_t` exists,
+ * satisfied by GCC, however C99 guarantees that `int32_t` exists,
* and it is basically the same thing as `long int`; with one important
* difference: it is guaranteed to use two's complement. */
if ((word_size & -word_size) != word_size)