Lines Matching refs:UINT64
30 typedef unsigned long long int UINT64; typedef
40 register UINT64 __out; \
41 register UINT64 __in = x; \
46 #define ROL64(a, offset) ((((UINT64)a) << offset) ^ (((UINT64)a) >> (64-offset)))
58 static const UINT64 KeccakF1600RoundConstants[24] = {
90 ((UINT64*)state)[ 1] = ~(UINT64)0; in KeccakP1600_Initialize()
91 ((UINT64*)state)[ 2] = ~(UINT64)0; in KeccakP1600_Initialize()
92 ((UINT64*)state)[ 8] = ~(UINT64)0; in KeccakP1600_Initialize()
93 ((UINT64*)state)[12] = ~(UINT64)0; in KeccakP1600_Initialize()
94 ((UINT64*)state)[17] = ~(UINT64)0; in KeccakP1600_Initialize()
95 ((UINT64*)state)[20] = ~(UINT64)0; in KeccakP1600_Initialize()
104 UINT64 lane; in KeccakP1600_AddBytesInLane()
115 UINT64 lane = 0; in KeccakP1600_AddBytesInLane()
118 lane |= ((UINT64)data[i]) << ((i+offset)*8); in KeccakP1600_AddBytesInLane()
120 ((UINT64*)state)[lanePosition] ^= lane; in KeccakP1600_AddBytesInLane()
142 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
143 ((UINT64*)state)[i+1] ^= ((UINT64*)data)[i+1]; in KeccakP1600_AddLanes()
144 ((UINT64*)state)[i+2] ^= ((UINT64*)data)[i+2]; in KeccakP1600_AddLanes()
145 ((UINT64*)state)[i+3] ^= ((UINT64*)data)[i+3]; in KeccakP1600_AddLanes()
146 ((UINT64*)state)[i+4] ^= ((UINT64*)data)[i+4]; in KeccakP1600_AddLanes()
147 ((UINT64*)state)[i+5] ^= ((UINT64*)data)[i+5]; in KeccakP1600_AddLanes()
148 ((UINT64*)state)[i+6] ^= ((UINT64*)data)[i+6]; in KeccakP1600_AddLanes()
149 ((UINT64*)state)[i+7] ^= ((UINT64*)data)[i+7]; in KeccakP1600_AddLanes()
152 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
153 ((UINT64*)state)[i+1] ^= ((UINT64*)data)[i+1]; in KeccakP1600_AddLanes()
154 ((UINT64*)state)[i+2] ^= ((UINT64*)data)[i+2]; in KeccakP1600_AddLanes()
155 ((UINT64*)state)[i+3] ^= ((UINT64*)data)[i+3]; in KeccakP1600_AddLanes()
158 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
159 ((UINT64*)state)[i+1] ^= ((UINT64*)data)[i+1]; in KeccakP1600_AddLanes()
162 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
169 UINT64 lane = (UINT64)curData[0] in KeccakP1600_AddLanes()
170 | ((UINT64)curData[1] << 8) in KeccakP1600_AddLanes()
171 | ((UINT64)curData[2] << 16) in KeccakP1600_AddLanes()
172 | ((UINT64)curData[3] << 24) in KeccakP1600_AddLanes()
173 | ((UINT64)curData[4] <<32) in KeccakP1600_AddLanes()
174 | ((UINT64)curData[5] << 40) in KeccakP1600_AddLanes()
175 | ((UINT64)curData[6] << 48) in KeccakP1600_AddLanes()
176 | ((UINT64)curData[7] << 56); in KeccakP1600_AddLanes()
177 ((UINT64*)state)[i] ^= lane; in KeccakP1600_AddLanes()
187 UINT64 lane = byte; in KeccakP1600_AddByte()
189 ((UINT64*)state)[offset/8] ^= lane; in KeccakP1600_AddByte()
231 ((UINT64*)state)[lanePosition] = ~((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
233 ((UINT64*)state)[lanePosition] = ((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
259 ((UINT64*)state)[lanePosition] = ~0; in KeccakP1600_OverwriteWithZeroes()
261 ((UINT64*)state)[lanePosition] = 0; in KeccakP1600_OverwriteWithZeroes()
283 UINT64 *stateAsLanes = (UINT64*)state; in KeccakP1600_Permute_Nrounds()
299 UINT64 *stateAsLanes = (UINT64*)state; in KeccakP1600_Permute_24rounds()
314 UINT64 *stateAsLanes = (UINT64*)state; in KeccakP1600_Permute_12rounds()
325 UINT64 lane = ((UINT64*)state)[lanePosition]; in KeccakP1600_ExtractBytesInLane()
332 UINT64 lane1[1]; in KeccakP1600_ExtractBytesInLane()
349 void fromWordToBytes(UINT8 *bytes, const UINT64 word) in fromWordToBytes()
366 fromWordToBytes(data+(i*8), ((const UINT64*)state)[i]); in KeccakP1600_ExtractLanes()
370 ((UINT64*)data)[ 1] = ~((UINT64*)data)[ 1]; in KeccakP1600_ExtractLanes()
372 ((UINT64*)data)[ 2] = ~((UINT64*)data)[ 2]; in KeccakP1600_ExtractLanes()
374 ((UINT64*)data)[ 8] = ~((UINT64*)data)[ 8]; in KeccakP1600_ExtractLanes()
376 ((UINT64*)data)[12] = ~((UINT64*)data)[12]; in KeccakP1600_ExtractLanes()
378 ((UINT64*)data)[17] = ~((UINT64*)data)[17]; in KeccakP1600_ExtractLanes()
380 ((UINT64*)data)[20] = ~((UINT64*)data)[20]; in KeccakP1600_ExtractLanes()
401 UINT64 lane = ((UINT64*)state)[lanePosition]; in KeccakP1600_ExtractAndAddBytesInLane()
409 UINT64 lane1[1]; in KeccakP1600_ExtractAndAddBytesInLane()
436 ((UINT64*)output)[i] = ((UINT64*)input)[i] ^ ((const UINT64*)state)[i]; in KeccakP1600_ExtractAndAddLanes()
438 fromWordToBytes(temp, ((const UINT64*)state)[i]); in KeccakP1600_ExtractAndAddLanes()
445 ((UINT64*)output)[ 1] = ~((UINT64*)output)[ 1]; in KeccakP1600_ExtractAndAddLanes()
447 ((UINT64*)output)[ 2] = ~((UINT64*)output)[ 2]; in KeccakP1600_ExtractAndAddLanes()
449 ((UINT64*)output)[ 8] = ~((UINT64*)output)[ 8]; in KeccakP1600_ExtractAndAddLanes()
451 ((UINT64*)output)[12] = ~((UINT64*)output)[12]; in KeccakP1600_ExtractAndAddLanes()
453 ((UINT64*)output)[17] = ~((UINT64*)output)[17]; in KeccakP1600_ExtractAndAddLanes()
455 ((UINT64*)output)[20] = ~((UINT64*)output)[20]; in KeccakP1600_ExtractAndAddLanes()
482 UINT64 *stateAsLanes = (UINT64*)state; in KeccakF1600_FastLoop_Absorb()
483 UINT64 *inDataAsLanes = (UINT64*)data; in KeccakF1600_FastLoop_Absorb()