changeset 21300:3f4770a7b27c

sha3: Fix typo in ifdef The code was supposed to be used with big endian machines. Reported by than@redhat.com
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Wed, 14 Dec 2016 10:32:44 +0200
parents 5be9ee567034
children e39750012d11
files src/lib/sha3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/sha3.c	Mon Dec 12 15:21:13 2016 +0200
+++ b/src/lib/sha3.c	Wed Dec 14 10:32:44 2016 +0200
@@ -232,7 +232,7 @@
 			SHA3_CONST(0x8000000000000000UL);
 	keccakf(ctx->s);
 
-#ifndef WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
 	{
 		unsigned i;
 		for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) {