Lines Matching refs:i
116 unsigned int i; in KeccakP1600_AddBytesInLane()
117 for(i=0; i<length; i++) in KeccakP1600_AddBytesInLane()
118 lane |= ((UINT64)data[i]) << ((i+offset)*8); in KeccakP1600_AddBytesInLane()
129 unsigned int i = 0; in KeccakP1600_AddLanes() local
133 for (i = 0; i < laneCount * 8; i++) { in KeccakP1600_AddLanes()
134 ((unsigned char*)state)[i] ^= data[i]; in KeccakP1600_AddLanes()
141 for( ; (i+8)<=laneCount; i+=8) { 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()
151 for( ; (i+4)<=laneCount; i+=4) { 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()
157 for( ; (i+2)<=laneCount; i+=2) { 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()
161 if (i<laneCount) { in KeccakP1600_AddLanes()
162 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
166 unsigned int i; in KeccakP1600_AddLanes()
168 for(i=0; i<laneCount; i++, curData+=8) { in KeccakP1600_AddLanes()
177 ((UINT64*)state)[i] ^= lane; in KeccakP1600_AddLanes()
207 unsigned int i; in KeccakP1600_OverwriteBytesInLane() local
208 for(i=0; i<length; i++) in KeccakP1600_OverwriteBytesInLane()
209 ((unsigned char*)state)[lanePosition*8+offset+i] = ~data[i]; in KeccakP1600_OverwriteBytesInLane()
282 unsigned int i; in KeccakP1600_Permute_Nrounds() local
297 unsigned int i; in KeccakP1600_Permute_24rounds() local
312 unsigned int i; in KeccakP1600_Permute_12rounds() local
337 unsigned int i; in KeccakP1600_ExtractBytesInLane() local
339 for(i=0; i<length; i++) { in KeccakP1600_ExtractBytesInLane()
340 data[i] = lane & 0xFF; in KeccakP1600_ExtractBytesInLane()
351 unsigned int i; in fromWordToBytes() local
353 for(i=0; i<(64/8); i++) in fromWordToBytes()
354 bytes[i] = (word >> (8*i)) & 0xFF; in fromWordToBytes()
363 unsigned int i; in KeccakP1600_ExtractLanes()
365 for(i=0; i<laneCount; i++) in KeccakP1600_ExtractLanes()
366 fromWordToBytes(data+(i*8), ((const UINT64*)state)[i]); in KeccakP1600_ExtractLanes()
408 unsigned int i; in KeccakP1600_ExtractAndAddBytesInLane() local
411 for(i=0; i<length; i++) in KeccakP1600_ExtractAndAddBytesInLane()
412 output[i] = input[i] ^ ((UINT8*)lane1)[offset+i]; in KeccakP1600_ExtractAndAddBytesInLane()
415 unsigned int i; in KeccakP1600_ExtractAndAddBytesInLane() local
417 for(i=0; i<length; i++) { in KeccakP1600_ExtractAndAddBytesInLane()
418 output[i] = input[i] ^ (lane & 0xFF); in KeccakP1600_ExtractAndAddBytesInLane()
428 unsigned int i; in KeccakP1600_ExtractAndAddLanes() local
434 for(i=0; i<laneCount; i++) { in KeccakP1600_ExtractAndAddLanes()
436 ((UINT64*)output)[i] = ((UINT64*)input)[i] ^ ((const UINT64*)state)[i]; in KeccakP1600_ExtractAndAddLanes()
438 fromWordToBytes(temp, ((const UINT64*)state)[i]); in KeccakP1600_ExtractAndAddLanes()
440 output[i*8+j] = input[i*8+j] ^ temp[j]; in KeccakP1600_ExtractAndAddLanes()
480 unsigned int i; in KeccakF1600_FastLoop_Absorb() local