68 #define KeccakPermutationSize 1600 69 #define KeccakPermutationSizeInBytes (KeccakPermutationSize/8) 70 #define KeccakMaximumRate 1536 71 #define KeccakMaximumRateInBytes (KeccakMaximumRate/8) 74 #define ALIGN __attribute__ ((aligned(32))) 75 #elif defined(_MSC_VER) 76 #define ALIGN __declspec(align(32)) 83 ALIGN
unsigned char state[KeccakPermutationSizeInBytes];
84 ALIGN
unsigned char dataQueue[KeccakMaximumRateInBytes];
86 unsigned int capacity;
87 unsigned int bitsInQueue;
88 unsigned int fixedOutputLength;
90 unsigned int bitsAvailableForSqueezing;
101 enum HashBits {hb224, hb256, hb384, hb512};
106 static bool selfTest(
void);
108 bool init(HashBits hashBits=hb256);
109 bool addData(
const QByteArray &data);
110 bool addData(
const char *data,
int size);
111 const QByteArray &finalize();
116 QByteArray m_hashResult;
Definition: Hash_Keccak.h:98
This file contains miscellaneous functions that are generally useful for Qt-based applications...
Definition: Hash_Keccak.h:81
Definition: CPUFeatures.h:30