aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-04 14:20:14 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-04 14:20:41 +0100
commit09f0fda0dfba563a194afac29f60ef9ae373fc76 (patch)
treeb7f0f66699b83af13c4f402d511de06ced24092d /src
parentcompletion of digest.c, apart from testing and fixing insecurities (diff)
downloadlibkeccak-09f0fda0dfba563a194afac29f60ef9ae373fc76.tar.gz
libkeccak-09f0fda0dfba563a194afac29f60ef9ae373fc76.tar.bz2
libkeccak-09f0fda0dfba563a194afac29f60ef9ae373fc76.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/libkeccak/digest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libkeccak/digest.c b/src/libkeccak/digest.c
index eacd3aa..cf17538 100644
--- a/src/libkeccak/digest.c
+++ b/src/libkeccak/digest.c
@@ -94,8 +94,8 @@ static __attribute__((leaf, nonnull, nothrow, hot))
void libkeccak_f_round(libkeccak_state_t* restrict state, int_fast64_t rc)
{
int_fast64_t* restrict A = state->S;
- int_fast64_t* restrict B = state->B;
- int_fast64_t* restrict C = state->C;
+ int_fast64_t B[25];
+ int_fast64_t C[5];
int_fast64_t da, db, dc, dd, de, wmod = state->wmod;
long w = state->w;
@@ -139,8 +139,8 @@ static __attribute__((leaf, nonnull, nothrow, hot))
void libkeccak_f_round64(libkeccak_state_t* restrict state, int_fast64_t rc)
{
int_fast64_t* restrict A = state->S;
- int_fast64_t* restrict B = state->B;
- int_fast64_t* restrict C = state->C;
+ int_fast64_t B[25];
+ int_fast64_t C[5];
int_fast64_t da, db, dc, dd, de;
/* θ step (step 1 and 2 of 3). */