]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
sha3: Fix typo in ifdef
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 14 Dec 2016 08:32:44 +0000 (10:32 +0200)
committerGitLab <gitlab@git.dovecot.net>
Wed, 14 Dec 2016 15:32:24 +0000 (17:32 +0200)
The code was supposed to be used with big endian
machines.

Reported by than@redhat.com

src/lib/sha3.c

index 8cf61fa18d82500a3e733746b4334d12a3e46472..67c4476456de7edeccf4c6caf11fd5f152e0fed1 100644 (file)
@@ -232,7 +232,7 @@ sha3_finalize(struct sha3_ctx *ctx)
                        SHA3_CONST(0x8000000000000000UL);
        keccakf(ctx->s);
 
-#ifndef WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
        {
                unsigned i;
                for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) {