Lines Matching refs:i
108 unsigned int i; in KeccakP1600_AddBytesInLane()
109 for(i=0; i<length; i++) in KeccakP1600_AddBytesInLane()
110 lane |= ((UINT64)data[i]) << ((i+offset)*8); in KeccakP1600_AddBytesInLane()
120 unsigned int i = 0; in KeccakP1600_AddLanes() local
124 for (i = 0; i < laneCount * 8; i++) { in KeccakP1600_AddLanes()
125 ((unsigned char*)state)[i] ^= data[i]; in KeccakP1600_AddLanes()
132 for( ; (i+8)<=laneCount; i+=8) { 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()
142 for( ; (i+4)<=laneCount; i+=4) { 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()
148 for( ; (i+2)<=laneCount; i+=2) { 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()
152 if (i<laneCount) { in KeccakP1600_AddLanes()
153 ((UINT64*)state)[i+0] ^= ((UINT64*)data)[i+0]; in KeccakP1600_AddLanes()
157 unsigned int i; in KeccakP1600_AddLanes()
159 for(i=0; i<laneCount; i++, curData+=8) { in KeccakP1600_AddLanes()
168 ((UINT64*)state)[i] ^= lane; in KeccakP1600_AddLanes()
198 unsigned int i; in KeccakP1600_OverwriteBytesInLane() local
199 for(i=0; i<length; i++) in KeccakP1600_OverwriteBytesInLane()
200 ((unsigned char*)state)[lanePosition*8+offset+i] = ~data[i]; in KeccakP1600_OverwriteBytesInLane()
273 unsigned int i; in KeccakP1600_Permute_Nrounds() local
288 unsigned int i; in KeccakP1600_Permute_24rounds() local
303 unsigned int i; in KeccakP1600_Permute_12rounds() local
328 unsigned int i; in KeccakP1600_ExtractBytesInLane() local
330 for(i=0; i<length; i++) { in KeccakP1600_ExtractBytesInLane()
331 data[i] = lane & 0xFF; in KeccakP1600_ExtractBytesInLane()
342 unsigned int i; in fromWordToBytes() local
344 for(i=0; i<(64/8); i++) in fromWordToBytes()
345 bytes[i] = (word >> (8*i)) & 0xFF; in fromWordToBytes()
354 unsigned int i; in KeccakP1600_ExtractLanes()
356 for(i=0; i<laneCount; i++) in KeccakP1600_ExtractLanes()
357 fromWordToBytes(data+(i*8), ((const UINT64*)state)[i]); in KeccakP1600_ExtractLanes()
399 unsigned int i; in KeccakP1600_ExtractAndAddBytesInLane() local
402 for(i=0; i<length; i++) in KeccakP1600_ExtractAndAddBytesInLane()
403 output[i] = input[i] ^ ((UINT8*)lane1)[offset+i]; in KeccakP1600_ExtractAndAddBytesInLane()
406 unsigned int i; in KeccakP1600_ExtractAndAddBytesInLane() local
408 for(i=0; i<length; i++) { in KeccakP1600_ExtractAndAddBytesInLane()
409 output[i] = input[i] ^ (lane & 0xFF); in KeccakP1600_ExtractAndAddBytesInLane()
419 unsigned int i; in KeccakP1600_ExtractAndAddLanes() local
425 for(i=0; i<laneCount; i++) { in KeccakP1600_ExtractAndAddLanes()
427 ((UINT64*)output)[i] = ((UINT64*)input)[i] ^ ((const UINT64*)state)[i]; in KeccakP1600_ExtractAndAddLanes()
429 fromWordToBytes(temp, ((const UINT64*)state)[i]); in KeccakP1600_ExtractAndAddLanes()
431 output[i*8+j] = input[i*8+j] ^ temp[j]; in KeccakP1600_ExtractAndAddLanes()
470 unsigned int i; in KeccakF1600_FastLoop_Absorb() local