Lines Matching refs:data
93 void KeccakP1600_AddBytesInLane(void *state, unsigned int lanePosition, const unsigned char *data, … in KeccakP1600_AddBytesInLane() argument
100 lane = data[0]; in KeccakP1600_AddBytesInLane()
103 memcpy(&lane, data, length); in KeccakP1600_AddBytesInLane()
110 lane |= ((UINT64)data[i]) << ((i+offset)*8); in KeccakP1600_AddBytesInLane()
117 void KeccakP1600_AddLanes(void *state, const unsigned char *data, unsigned int laneCount) in KeccakP1600_AddLanes() argument
123 if (((((uintptr_t)state) & 7) != 0) || ((((uintptr_t)data) & 7) != 0)) { in KeccakP1600_AddLanes()
125 ((unsigned char*)state)[i] ^= data[i]; in KeccakP1600_AddLanes()
133 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
134 ((UINT64*)state)[i+1] ^= ((UINT64*)data)[i+1]; in KeccakP1600_AddLanes()
135 ((UINT64*)state)[i+2] ^= ((UINT64*)data)[i+2]; in KeccakP1600_AddLanes()
136 ((UINT64*)state)[i+3] ^= ((UINT64*)data)[i+3]; in KeccakP1600_AddLanes()
137 ((UINT64*)state)[i+4] ^= ((UINT64*)data)[i+4]; in KeccakP1600_AddLanes()
138 ((UINT64*)state)[i+5] ^= ((UINT64*)data)[i+5]; in KeccakP1600_AddLanes()
139 ((UINT64*)state)[i+6] ^= ((UINT64*)data)[i+6]; in KeccakP1600_AddLanes()
140 ((UINT64*)state)[i+7] ^= ((UINT64*)data)[i+7]; in KeccakP1600_AddLanes()
143 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
144 ((UINT64*)state)[i+1] ^= ((UINT64*)data)[i+1]; in KeccakP1600_AddLanes()
145 ((UINT64*)state)[i+2] ^= ((UINT64*)data)[i+2]; in KeccakP1600_AddLanes()
146 ((UINT64*)state)[i+3] ^= ((UINT64*)data)[i+3]; in KeccakP1600_AddLanes()
149 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
150 ((UINT64*)state)[i+1] ^= ((UINT64*)data)[i+1]; in KeccakP1600_AddLanes()
153 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
158 UINT8 *curData = data; in KeccakP1600_AddLanes()
186 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int… in KeccakP1600_AddBytes() argument
188 SnP_AddBytes(state, data, offset, length, KeccakP1600_AddLanes, KeccakP1600_AddBytesInLane, 8); in KeccakP1600_AddBytes()
193 …eBytesInLane(void *state, unsigned int lanePosition, const unsigned char *data, unsigned int offse… in KeccakP1600_OverwriteBytesInLane() argument
200 ((unsigned char*)state)[lanePosition*8+offset+i] = ~data[i]; in KeccakP1600_OverwriteBytesInLane()
205 memcpy((unsigned char*)state+lanePosition*8+offset, data, length); in KeccakP1600_OverwriteBytesInLane()
214 void KeccakP1600_OverwriteLanes(void *state, const unsigned char *data, unsigned int laneCount) in KeccakP1600_OverwriteLanes() argument
222 ((UINT64*)state)[lanePosition] = ~((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
224 ((UINT64*)state)[lanePosition] = ((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
226 memcpy(state, data, laneCount*8); in KeccakP1600_OverwriteLanes()
235 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign… in KeccakP1600_OverwriteBytes() argument
237 …SnP_OverwriteBytes(state, data, offset, length, KeccakP1600_OverwriteLanes, KeccakP1600_OverwriteB… in KeccakP1600_OverwriteBytes()
314 …tBytesInLane(const void *state, unsigned int lanePosition, unsigned char *data, unsigned int offse… in KeccakP1600_ExtractBytesInLane() argument
325 memcpy(data, (UINT8*)lane1+offset, length); in KeccakP1600_ExtractBytesInLane()
331 data[i] = lane & 0xFF; in KeccakP1600_ExtractBytesInLane()
349 void KeccakP1600_ExtractLanes(const void *state, unsigned char *data, unsigned int laneCount) in KeccakP1600_ExtractLanes() argument
352 memcpy(data, state, laneCount*8); in KeccakP1600_ExtractLanes()
357 fromWordToBytes(data+(i*8), ((const UINT64*)state)[i]); in KeccakP1600_ExtractLanes()
361 ((UINT64*)data)[ 1] = ~((UINT64*)data)[ 1]; in KeccakP1600_ExtractLanes()
363 ((UINT64*)data)[ 2] = ~((UINT64*)data)[ 2]; in KeccakP1600_ExtractLanes()
365 ((UINT64*)data)[ 8] = ~((UINT64*)data)[ 8]; in KeccakP1600_ExtractLanes()
367 ((UINT64*)data)[12] = ~((UINT64*)data)[12]; in KeccakP1600_ExtractLanes()
369 ((UINT64*)data)[17] = ~((UINT64*)data)[17]; in KeccakP1600_ExtractLanes()
371 ((UINT64*)data)[20] = ~((UINT64*)data)[20]; in KeccakP1600_ExtractLanes()
383 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned… in KeccakP1600_ExtractBytes() argument
385 …SnP_ExtractBytes(state, data, offset, length, KeccakP1600_ExtractLanes, KeccakP1600_ExtractBytesIn… in KeccakP1600_ExtractBytes()
465 size_t KeccakF1600_FastLoop_Absorb(void *state, unsigned int laneCount, const unsigned char *data, … in KeccakF1600_FastLoop_Absorb() argument
473 UINT64 *inDataAsLanes = (UINT64*)data; in KeccakF1600_FastLoop_Absorb()