• Home
  • Raw
  • Download

Lines Matching refs:laneAsBytes

88     UINT8 laneAsBytes[8];  in KeccakP1600_SetBytesInLaneToZero()  local
93 memset(laneAsBytes, 0xFF, offset); in KeccakP1600_SetBytesInLaneToZero()
94 memset(laneAsBytes+offset, 0x00, length); in KeccakP1600_SetBytesInLaneToZero()
95 memset(laneAsBytes+offset+length, 0xFF, 8-offset-length); in KeccakP1600_SetBytesInLaneToZero()
97 low = *((UINT32*)(laneAsBytes+0)); in KeccakP1600_SetBytesInLaneToZero()
98 high = *((UINT32*)(laneAsBytes+4)); in KeccakP1600_SetBytesInLaneToZero()
100 low = laneAsBytes[0] in KeccakP1600_SetBytesInLaneToZero()
101 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_SetBytesInLaneToZero()
102 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_SetBytesInLaneToZero()
103 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_SetBytesInLaneToZero()
104 high = laneAsBytes[4] in KeccakP1600_SetBytesInLaneToZero()
105 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_SetBytesInLaneToZero()
106 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_SetBytesInLaneToZero()
107 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_SetBytesInLaneToZero()
144 UINT8 laneAsBytes[8]; in KeccakP1600_AddBytesInLane() local
149 memset(laneAsBytes, 0, 8); in KeccakP1600_AddBytesInLane()
150 memcpy(laneAsBytes+offset, data, length); in KeccakP1600_AddBytesInLane()
152 low = *((UINT32*)(laneAsBytes+0)); in KeccakP1600_AddBytesInLane()
153 high = *((UINT32*)(laneAsBytes+4)); in KeccakP1600_AddBytesInLane()
155 low = laneAsBytes[0] in KeccakP1600_AddBytesInLane()
156 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_AddBytesInLane()
157 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_AddBytesInLane()
158 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_AddBytesInLane()
159 high = laneAsBytes[4] in KeccakP1600_AddBytesInLane()
160 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_AddBytesInLane()
161 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_AddBytesInLane()
162 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_AddBytesInLane()
190 UINT8 laneAsBytes[8]; in KeccakP1600_AddLanes()
193 memcpy(laneAsBytes, data+lanePosition*8, 8); in KeccakP1600_AddLanes()
194 low = laneAsBytes[0] in KeccakP1600_AddLanes()
195 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_AddLanes()
196 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_AddLanes()
197 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_AddLanes()
198 high = laneAsBytes[4] in KeccakP1600_AddLanes()
199 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_AddLanes()
200 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_AddLanes()
201 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_AddLanes()
246 UINT8 laneAsBytes[8]; in KeccakP1600_OverwriteLanes()
249 memcpy(laneAsBytes, data+lanePosition*8, 8); in KeccakP1600_OverwriteLanes()
250 low = laneAsBytes[0] in KeccakP1600_OverwriteLanes()
251 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_OverwriteLanes()
252 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_OverwriteLanes()
253 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_OverwriteLanes()
254 high = laneAsBytes[4] in KeccakP1600_OverwriteLanes()
255 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_OverwriteLanes()
256 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_OverwriteLanes()
257 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_OverwriteLanes()
292 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractBytesInLane() local
296 *((UINT32*)(laneAsBytes+0)) = low; in KeccakP1600_ExtractBytesInLane()
297 *((UINT32*)(laneAsBytes+4)) = high; in KeccakP1600_ExtractBytesInLane()
299 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractBytesInLane()
300 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractBytesInLane()
301 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractBytesInLane()
302 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractBytesInLane()
303 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractBytesInLane()
304 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractBytesInLane()
305 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractBytesInLane()
306 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractBytesInLane()
308 memcpy(data, laneAsBytes+offset, length); in KeccakP1600_ExtractBytesInLane()
336 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractLanes()
338 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractLanes()
339 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractLanes()
340 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractLanes()
341 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractLanes()
342 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractLanes()
343 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractLanes()
344 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractLanes()
345 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractLanes()
346 memcpy(data+lanePosition*8, laneAsBytes, 8); in KeccakP1600_ExtractLanes()
364 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractAndAddBytesInLane() local
369 *((UINT32*)(laneAsBytes+0)) = low; in KeccakP1600_ExtractAndAddBytesInLane()
370 *((UINT32*)(laneAsBytes+4)) = high; in KeccakP1600_ExtractAndAddBytesInLane()
372 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
373 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
374 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
375 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
376 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
377 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
378 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
379 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
382 output[i] = input[i] ^ laneAsBytes[offset+i]; in KeccakP1600_ExtractAndAddBytesInLane()
411 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractAndAddLanes()
413 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractAndAddLanes()
414 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
415 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
416 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
417 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractAndAddLanes()
418 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
419 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
420 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
421 …put+lanePosition*8))[0] = ((UINT32*)(input+lanePosition*8))[0] ^ (*(const UINT32*)(laneAsBytes+0)); in KeccakP1600_ExtractAndAddLanes()
422 …put+lanePosition*8))[1] = ((UINT32*)(input+lanePosition*8))[0] ^ (*(const UINT32*)(laneAsBytes+4)); in KeccakP1600_ExtractAndAddLanes()