From c549744ea46402aab044b551aa07655ad0cc3b90 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 7 Nov 2014 00:47:37 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libkeccak/digest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libkeccak/digest.c b/src/libkeccak/digest.c index 62d615b..c2a7d6f 100644 --- a/src/libkeccak/digest.c +++ b/src/libkeccak/digest.c @@ -409,11 +409,12 @@ int libkeccak_digest(libkeccak_state_t* restrict state, const char* restrict msg size_t bits, const char* restrict suffix, char* restrict hashsum) { /* TODO optimise function */ + char* restrict new; long rr = state->r >> 3; long ww = state->w >> 3; long nn = (state->n + 7) >> 3; - size_t ext, suffix_len = suffix ? __builtin_strlen(suffix) : 0; - char* restrict new; + size_t suffix_len = suffix ? __builtin_strlen(suffix) : 0; + size_t ext; long i; if (msg == NULL) -- cgit v1.2.3-70-g09d2