There was an error while loading. Please reload this page.
1 parent 174baa3 commit ba3e4a0Copy full SHA for ba3e4a0
1 file changed
Modules/_sha3/keccak/KeccakF-1600-opt64.c
@@ -324,7 +324,7 @@ static void KeccakPermutation(unsigned char *state)
324
KeccakPermutationOnWords((UINT64*)state);
325
}
326
327
-/*
+#if (PLATFORM_BYTE_ORDER == IS_BIG_ENDIAN)
328
static void fromBytesToWord(UINT64 *word, const UINT8 *bytes)
329
{
330
unsigned int i;
@@ -333,7 +333,8 @@ static void fromBytesToWord(UINT64 *word, const UINT8 *bytes)
333
for(i=0; i<(64/8); i++)
334
*word |= (UINT64)(bytes[i]) << (8*i);
335
336
-*/
+#endif
337
+
338
339
#ifdef ProvideFast576
340
static void KeccakAbsorb576bits(unsigned char *state, const unsigned char *data)
@@ -445,15 +446,16 @@ static void KeccakAbsorb(unsigned char *state, const unsigned char *data, unsign
445
446
#endif
447
448
449
450
static void fromWordToBytes(UINT8 *bytes, const UINT64 word)
451
452
453
454
455
bytes[i] = (word >> (8*i)) & 0xFF;
456
457
458
459
460
#ifdef ProvideFast1024
461
static void KeccakExtract1024bits(const unsigned char *state, unsigned char *data)
0 commit comments