Lines Matching refs:laneCount

117 void KeccakP1600_AddLanes(void *state, const unsigned char *data, unsigned int laneCount)  in KeccakP1600_AddLanes()  argument
124 for (i = 0; i < laneCount * 8; i++) { in KeccakP1600_AddLanes()
132 for( ; (i+8)<=laneCount; i+=8) { in KeccakP1600_AddLanes()
142 for( ; (i+4)<=laneCount; i+=4) { in KeccakP1600_AddLanes()
148 for( ; (i+2)<=laneCount; i+=2) { in KeccakP1600_AddLanes()
152 if (i<laneCount) { in KeccakP1600_AddLanes()
159 for(i=0; i<laneCount; i++, curData+=8) { in KeccakP1600_AddLanes()
214 void KeccakP1600_OverwriteLanes(void *state, const unsigned char *data, unsigned int laneCount) in KeccakP1600_OverwriteLanes() argument
220 for(lanePosition=0; lanePosition<laneCount; lanePosition++) in KeccakP1600_OverwriteLanes()
226 memcpy(state, data, laneCount*8); in KeccakP1600_OverwriteLanes()
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()
356 for(i=0; i<laneCount; i++) in KeccakP1600_ExtractLanes()
360 if (laneCount > 1) { in KeccakP1600_ExtractLanes()
362 if (laneCount > 2) { in KeccakP1600_ExtractLanes()
364 if (laneCount > 8) { in KeccakP1600_ExtractLanes()
366 if (laneCount > 12) { in KeccakP1600_ExtractLanes()
368 if (laneCount > 17) { in KeccakP1600_ExtractLanes()
370 if (laneCount > 20) { in KeccakP1600_ExtractLanes()
417 …Lanes(const void *state, const unsigned char *input, unsigned char *output, unsigned int laneCount) in KeccakP1600_ExtractAndAddLanes() argument
425 for(i=0; i<laneCount; i++) { in KeccakP1600_ExtractAndAddLanes()
435 if (laneCount > 1) { in KeccakP1600_ExtractAndAddLanes()
437 if (laneCount > 2) { in KeccakP1600_ExtractAndAddLanes()
439 if (laneCount > 8) { in KeccakP1600_ExtractAndAddLanes()
441 if (laneCount > 12) { in KeccakP1600_ExtractAndAddLanes()
443 if (laneCount > 17) { in KeccakP1600_ExtractAndAddLanes()
445 if (laneCount > 20) { in KeccakP1600_ExtractAndAddLanes()
465 size_t KeccakF1600_FastLoop_Absorb(void *state, unsigned int laneCount, const unsigned char *data, … in KeccakF1600_FastLoop_Absorb() argument
476 while(dataByteLen >= laneCount*8) { in KeccakF1600_FastLoop_Absorb()
477 addInput(A, inDataAsLanes, laneCount) in KeccakF1600_FastLoop_Absorb()
479 inDataAsLanes += laneCount; in KeccakF1600_FastLoop_Absorb()
480 dataByteLen -= laneCount*8; in KeccakF1600_FastLoop_Absorb()