Lines Matching refs:data
101 void KeccakP1600_AddBytesInLane(void *state, unsigned int lanePosition, const unsigned char *data, … in KeccakP1600_AddBytesInLane() argument
108 lane = data[0]; in KeccakP1600_AddBytesInLane()
111 memcpy(&lane, data, length); in KeccakP1600_AddBytesInLane()
118 lane |= ((UINT64)data[i]) << ((i+offset)*8); in KeccakP1600_AddBytesInLane()
126 void KeccakP1600_AddLanes(void *state, const unsigned char *data, unsigned int laneCount) in KeccakP1600_AddLanes() argument
132 if (((((uintptr_t)state) & 7) != 0) || ((((uintptr_t)data) & 7) != 0)) { in KeccakP1600_AddLanes()
134 ((unsigned char*)state)[i] ^= data[i]; in KeccakP1600_AddLanes()
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()
167 UINT8 *curData = data; in KeccakP1600_AddLanes()
195 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int… in KeccakP1600_AddBytes() argument
197 SnP_AddBytes(state, data, offset, length, KeccakP1600_AddLanes, KeccakP1600_AddBytesInLane, 8); in KeccakP1600_AddBytes()
202 …eBytesInLane(void *state, unsigned int lanePosition, const unsigned char *data, unsigned int offse… in KeccakP1600_OverwriteBytesInLane() argument
209 ((unsigned char*)state)[lanePosition*8+offset+i] = ~data[i]; in KeccakP1600_OverwriteBytesInLane()
214 memcpy((unsigned char*)state+lanePosition*8+offset, data, length); in KeccakP1600_OverwriteBytesInLane()
223 void KeccakP1600_OverwriteLanes(void *state, const unsigned char *data, unsigned int laneCount) in KeccakP1600_OverwriteLanes() argument
231 ((UINT64*)state)[lanePosition] = ~((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
233 ((UINT64*)state)[lanePosition] = ((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
235 memcpy(state, data, laneCount*8); in KeccakP1600_OverwriteLanes()
244 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign… in KeccakP1600_OverwriteBytes() argument
246 …SnP_OverwriteBytes(state, data, offset, length, KeccakP1600_OverwriteLanes, KeccakP1600_OverwriteB… in KeccakP1600_OverwriteBytes()
323 …tBytesInLane(const void *state, unsigned int lanePosition, unsigned char *data, unsigned int offse… in KeccakP1600_ExtractBytesInLane() argument
334 memcpy(data, (UINT8*)lane1+offset, length); in KeccakP1600_ExtractBytesInLane()
340 data[i] = lane & 0xFF; in KeccakP1600_ExtractBytesInLane()
358 void KeccakP1600_ExtractLanes(const void *state, unsigned char *data, unsigned int laneCount) in KeccakP1600_ExtractLanes() argument
361 memcpy(data, state, laneCount*8); in KeccakP1600_ExtractLanes()
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()
392 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned… in KeccakP1600_ExtractBytes() argument
394 …SnP_ExtractBytes(state, data, offset, length, KeccakP1600_ExtractLanes, KeccakP1600_ExtractBytesIn… in KeccakP1600_ExtractBytes()
475 size_t KeccakF1600_FastLoop_Absorb(void *state, unsigned int laneCount, const unsigned char *data, … in KeccakF1600_FastLoop_Absorb() argument
483 UINT64 *inDataAsLanes = (UINT64*)data; in KeccakF1600_FastLoop_Absorb()