Lines Matching refs:lanePosition
101 void KeccakP1600_AddBytesInLane(void *state, unsigned int lanePosition, const unsigned char *data, … in KeccakP1600_AddBytesInLane() argument
120 ((UINT64*)state)[lanePosition] ^= lane; in KeccakP1600_AddBytesInLane()
202 void KeccakP1600_OverwriteBytesInLane(void *state, unsigned int lanePosition, const unsigned char *… in KeccakP1600_OverwriteBytesInLane() argument
206 …if ((lanePosition == 1) || (lanePosition == 2) || (lanePosition == 8) || (lanePosition == 12) || (… in KeccakP1600_OverwriteBytesInLane()
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()
227 unsigned int lanePosition; in KeccakP1600_OverwriteLanes() local
229 for(lanePosition=0; lanePosition<laneCount; lanePosition++) in KeccakP1600_OverwriteLanes()
230 …if ((lanePosition == 1) || (lanePosition == 2) || (lanePosition == 8) || (lanePosition == 12) || (… in KeccakP1600_OverwriteLanes()
231 ((UINT64*)state)[lanePosition] = ~((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
233 ((UINT64*)state)[lanePosition] = ((const UINT64*)data)[lanePosition]; in KeccakP1600_OverwriteLanes()
255 unsigned int lanePosition; in KeccakP1600_OverwriteWithZeroes() local
257 for(lanePosition=0; lanePosition<byteCount/8; lanePosition++) in KeccakP1600_OverwriteWithZeroes()
258 …if ((lanePosition == 1) || (lanePosition == 2) || (lanePosition == 8) || (lanePosition == 12) || (… in KeccakP1600_OverwriteWithZeroes()
259 ((UINT64*)state)[lanePosition] = ~0; in KeccakP1600_OverwriteWithZeroes()
261 ((UINT64*)state)[lanePosition] = 0; in KeccakP1600_OverwriteWithZeroes()
263 lanePosition = byteCount/8; in KeccakP1600_OverwriteWithZeroes()
264 …if ((lanePosition == 1) || (lanePosition == 2) || (lanePosition == 8) || (lanePosition == 12) || (… in KeccakP1600_OverwriteWithZeroes()
265 memset((unsigned char*)state+lanePosition*8, 0xFF, byteCount%8); in KeccakP1600_OverwriteWithZeroes()
267 memset((unsigned char*)state+lanePosition*8, 0, byteCount%8); in KeccakP1600_OverwriteWithZeroes()
323 void KeccakP1600_ExtractBytesInLane(const void *state, unsigned int lanePosition, unsigned char *da… in KeccakP1600_ExtractBytesInLane() argument
325 UINT64 lane = ((UINT64*)state)[lanePosition]; in KeccakP1600_ExtractBytesInLane()
327 …if ((lanePosition == 1) || (lanePosition == 2) || (lanePosition == 8) || (lanePosition == 12) || (… in KeccakP1600_ExtractBytesInLane()
399 void KeccakP1600_ExtractAndAddBytesInLane(const void *state, unsigned int lanePosition, const unsig… in KeccakP1600_ExtractAndAddBytesInLane() argument
401 UINT64 lane = ((UINT64*)state)[lanePosition]; in KeccakP1600_ExtractAndAddBytesInLane()
403 …if ((lanePosition == 1) || (lanePosition == 2) || (lanePosition == 8) || (lanePosition == 12) || (… in KeccakP1600_ExtractAndAddBytesInLane()