Lines Matching refs:laneAsBytes
92 UINT8 laneAsBytes[8]; in KeccakP1600_SetBytesInLaneToZero() local
97 memset(laneAsBytes, 0xFF, offset); in KeccakP1600_SetBytesInLaneToZero()
98 memset(laneAsBytes+offset, 0x00, length); in KeccakP1600_SetBytesInLaneToZero()
99 memset(laneAsBytes+offset+length, 0xFF, 8-offset-length); in KeccakP1600_SetBytesInLaneToZero()
101 low = *((UINT32*)(laneAsBytes+0)); in KeccakP1600_SetBytesInLaneToZero()
102 high = *((UINT32*)(laneAsBytes+4)); in KeccakP1600_SetBytesInLaneToZero()
104 low = laneAsBytes[0] in KeccakP1600_SetBytesInLaneToZero()
105 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_SetBytesInLaneToZero()
106 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_SetBytesInLaneToZero()
107 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_SetBytesInLaneToZero()
108 high = laneAsBytes[4] in KeccakP1600_SetBytesInLaneToZero()
109 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_SetBytesInLaneToZero()
110 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_SetBytesInLaneToZero()
111 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_SetBytesInLaneToZero()
148 UINT8 laneAsBytes[8]; in KeccakP1600_AddBytesInLane() local
153 memset(laneAsBytes, 0, 8); in KeccakP1600_AddBytesInLane()
154 memcpy(laneAsBytes+offset, data, length); in KeccakP1600_AddBytesInLane()
156 low = *((UINT32*)(laneAsBytes+0)); in KeccakP1600_AddBytesInLane()
157 high = *((UINT32*)(laneAsBytes+4)); in KeccakP1600_AddBytesInLane()
159 low = laneAsBytes[0] in KeccakP1600_AddBytesInLane()
160 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_AddBytesInLane()
161 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_AddBytesInLane()
162 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_AddBytesInLane()
163 high = laneAsBytes[4] in KeccakP1600_AddBytesInLane()
164 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_AddBytesInLane()
165 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_AddBytesInLane()
166 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_AddBytesInLane()
195 UINT8 laneAsBytes[8]; in KeccakP1600_AddLanes()
196 memcpy(laneAsBytes, data+lanePosition*8, 8); in KeccakP1600_AddLanes()
197 UINT32 low = laneAsBytes[0] in KeccakP1600_AddLanes()
198 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_AddLanes()
199 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_AddLanes()
200 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_AddLanes()
201 UINT32 high = laneAsBytes[4] in KeccakP1600_AddLanes()
202 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_AddLanes()
203 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_AddLanes()
204 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_AddLanes()
251 UINT8 laneAsBytes[8]; in KeccakP1600_OverwriteLanes()
252 memcpy(laneAsBytes, data+lanePosition*8, 8); in KeccakP1600_OverwriteLanes()
253 UINT32 low = laneAsBytes[0] in KeccakP1600_OverwriteLanes()
254 | ((UINT32)(laneAsBytes[1]) << 8) in KeccakP1600_OverwriteLanes()
255 | ((UINT32)(laneAsBytes[2]) << 16) in KeccakP1600_OverwriteLanes()
256 | ((UINT32)(laneAsBytes[3]) << 24); in KeccakP1600_OverwriteLanes()
257 UINT32 high = laneAsBytes[4] in KeccakP1600_OverwriteLanes()
258 | ((UINT32)(laneAsBytes[5]) << 8) in KeccakP1600_OverwriteLanes()
259 | ((UINT32)(laneAsBytes[6]) << 16) in KeccakP1600_OverwriteLanes()
260 | ((UINT32)(laneAsBytes[7]) << 24); in KeccakP1600_OverwriteLanes()
296 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractBytesInLane() local
300 *((UINT32*)(laneAsBytes+0)) = low; in KeccakP1600_ExtractBytesInLane()
301 *((UINT32*)(laneAsBytes+4)) = high; in KeccakP1600_ExtractBytesInLane()
303 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractBytesInLane()
304 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractBytesInLane()
305 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractBytesInLane()
306 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractBytesInLane()
307 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractBytesInLane()
308 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractBytesInLane()
309 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractBytesInLane()
310 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractBytesInLane()
312 memcpy(data, laneAsBytes+offset, length); in KeccakP1600_ExtractBytesInLane()
342 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractLanes()
343 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractLanes()
344 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractLanes()
345 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractLanes()
346 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractLanes()
347 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractLanes()
348 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractLanes()
349 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractLanes()
350 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractLanes()
351 memcpy(data+lanePosition*8, laneAsBytes, 8); in KeccakP1600_ExtractLanes()
369 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractAndAddBytesInLane() local
374 *((UINT32*)(laneAsBytes+0)) = low; in KeccakP1600_ExtractAndAddBytesInLane()
375 *((UINT32*)(laneAsBytes+4)) = high; in KeccakP1600_ExtractAndAddBytesInLane()
377 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
378 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
379 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
380 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
381 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
382 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
383 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
384 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractAndAddBytesInLane()
387 output[i] = input[i] ^ laneAsBytes[offset+i]; in KeccakP1600_ExtractAndAddBytesInLane()
418 UINT8 laneAsBytes[8]; in KeccakP1600_ExtractAndAddLanes()
419 laneAsBytes[0] = low & 0xFF; in KeccakP1600_ExtractAndAddLanes()
420 laneAsBytes[1] = (low >> 8) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
421 laneAsBytes[2] = (low >> 16) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
422 laneAsBytes[3] = (low >> 24) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
423 laneAsBytes[4] = high & 0xFF; in KeccakP1600_ExtractAndAddLanes()
424 laneAsBytes[5] = (high >> 8) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
425 laneAsBytes[6] = (high >> 16) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
426 laneAsBytes[7] = (high >> 24) & 0xFF; in KeccakP1600_ExtractAndAddLanes()
427 …put+lanePosition*8))[0] = ((UINT32*)(input+lanePosition*8))[0] ^ (*(const UINT32*)(laneAsBytes+0)); in KeccakP1600_ExtractAndAddLanes()
428 …put+lanePosition*8))[1] = ((UINT32*)(input+lanePosition*8))[0] ^ (*(const UINT32*)(laneAsBytes+4)); in KeccakP1600_ExtractAndAddLanes()