Lines Matching refs:temp

154 #define	temp	xtemp.x8  in rijndaelEncrypt()  macro
158 *((word32*)temp[0]) = *((word32*)(a )) ^ *((word32*)rk[0][0]); in rijndaelEncrypt()
159 *((word32*)temp[1]) = *((word32*)(a+ 4)) ^ *((word32*)rk[0][1]); in rijndaelEncrypt()
160 *((word32*)temp[2]) = *((word32*)(a+ 8)) ^ *((word32*)rk[0][2]); in rijndaelEncrypt()
161 *((word32*)temp[3]) = *((word32*)(a+12)) ^ *((word32*)rk[0][3]); in rijndaelEncrypt()
162 *((word32*)(b )) = *((const word32*)T1[temp[0][0]]) in rijndaelEncrypt()
163 ^ *((const word32*)T2[temp[1][1]]) in rijndaelEncrypt()
164 ^ *((const word32*)T3[temp[2][2]]) in rijndaelEncrypt()
165 ^ *((const word32*)T4[temp[3][3]]); in rijndaelEncrypt()
166 *((word32*)(b + 4)) = *((const word32*)T1[temp[1][0]]) in rijndaelEncrypt()
167 ^ *((const word32*)T2[temp[2][1]]) in rijndaelEncrypt()
168 ^ *((const word32*)T3[temp[3][2]]) in rijndaelEncrypt()
169 ^ *((const word32*)T4[temp[0][3]]); in rijndaelEncrypt()
170 *((word32*)(b + 8)) = *((const word32*)T1[temp[2][0]]) in rijndaelEncrypt()
171 ^ *((const word32*)T2[temp[3][1]]) in rijndaelEncrypt()
172 ^ *((const word32*)T3[temp[0][2]]) in rijndaelEncrypt()
173 ^ *((const word32*)T4[temp[1][3]]); in rijndaelEncrypt()
174 *((word32*)(b +12)) = *((const word32*)T1[temp[3][0]]) in rijndaelEncrypt()
175 ^ *((const word32*)T2[temp[0][1]]) in rijndaelEncrypt()
176 ^ *((const word32*)T3[temp[1][2]]) in rijndaelEncrypt()
177 ^ *((const word32*)T4[temp[2][3]]); in rijndaelEncrypt()
179 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[r][0]); in rijndaelEncrypt()
180 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[r][1]); in rijndaelEncrypt()
181 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[r][2]); in rijndaelEncrypt()
182 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[r][3]); in rijndaelEncrypt()
184 *((word32*)(b )) = *((const word32*)T1[temp[0][0]]) in rijndaelEncrypt()
185 ^ *((const word32*)T2[temp[1][1]]) in rijndaelEncrypt()
186 ^ *((const word32*)T3[temp[2][2]]) in rijndaelEncrypt()
187 ^ *((const word32*)T4[temp[3][3]]); in rijndaelEncrypt()
188 *((word32*)(b + 4)) = *((const word32*)T1[temp[1][0]]) in rijndaelEncrypt()
189 ^ *((const word32*)T2[temp[2][1]]) in rijndaelEncrypt()
190 ^ *((const word32*)T3[temp[3][2]]) in rijndaelEncrypt()
191 ^ *((const word32*)T4[temp[0][3]]); in rijndaelEncrypt()
192 *((word32*)(b + 8)) = *((const word32*)T1[temp[2][0]]) in rijndaelEncrypt()
193 ^ *((const word32*)T2[temp[3][1]]) in rijndaelEncrypt()
194 ^ *((const word32*)T3[temp[0][2]]) in rijndaelEncrypt()
195 ^ *((const word32*)T4[temp[1][3]]); in rijndaelEncrypt()
196 *((word32*)(b +12)) = *((const word32*)T1[temp[3][0]]) in rijndaelEncrypt()
197 ^ *((const word32*)T2[temp[0][1]]) in rijndaelEncrypt()
198 ^ *((const word32*)T3[temp[1][2]]) in rijndaelEncrypt()
199 ^ *((const word32*)T4[temp[2][3]]); in rijndaelEncrypt()
202 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[ROUNDS-1][0]); in rijndaelEncrypt()
203 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[ROUNDS-1][1]); in rijndaelEncrypt()
204 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[ROUNDS-1][2]); in rijndaelEncrypt()
205 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[ROUNDS-1][3]); in rijndaelEncrypt()
206 b[ 0] = T1[temp[0][0]][1]; in rijndaelEncrypt()
207 b[ 1] = T1[temp[1][1]][1]; in rijndaelEncrypt()
208 b[ 2] = T1[temp[2][2]][1]; in rijndaelEncrypt()
209 b[ 3] = T1[temp[3][3]][1]; in rijndaelEncrypt()
210 b[ 4] = T1[temp[1][0]][1]; in rijndaelEncrypt()
211 b[ 5] = T1[temp[2][1]][1]; in rijndaelEncrypt()
212 b[ 6] = T1[temp[3][2]][1]; in rijndaelEncrypt()
213 b[ 7] = T1[temp[0][3]][1]; in rijndaelEncrypt()
214 b[ 8] = T1[temp[2][0]][1]; in rijndaelEncrypt()
215 b[ 9] = T1[temp[3][1]][1]; in rijndaelEncrypt()
216 b[10] = T1[temp[0][2]][1]; in rijndaelEncrypt()
217 b[11] = T1[temp[1][3]][1]; in rijndaelEncrypt()
218 b[12] = T1[temp[3][0]][1]; in rijndaelEncrypt()
219 b[13] = T1[temp[0][1]][1]; in rijndaelEncrypt()
220 b[14] = T1[temp[1][2]][1]; in rijndaelEncrypt()
221 b[15] = T1[temp[2][3]][1]; in rijndaelEncrypt()
232 #undef temp in rijndaelEncrypt()
242 word8 temp[4][4]; in rijndaelEncryptRound() local
255 *((word32*)temp[0]) = *((const word32*)T1[a[0][0]]) in rijndaelEncryptRound()
259 *((word32*)temp[1]) = *((const word32*)T1[a[1][0]]) in rijndaelEncryptRound()
263 *((word32*)temp[2]) = *((const word32*)T1[a[2][0]]) in rijndaelEncryptRound()
267 *((word32*)temp[3]) = *((const word32*)T1[a[3][0]]) in rijndaelEncryptRound()
271 *((word32*)a[0]) = *((word32*)temp[0]) ^ *((word32*)rk[r][0]); in rijndaelEncryptRound()
272 *((word32*)a[1]) = *((word32*)temp[1]) ^ *((word32*)rk[r][1]); in rijndaelEncryptRound()
273 *((word32*)a[2]) = *((word32*)temp[2]) ^ *((word32*)rk[r][2]); in rijndaelEncryptRound()
274 *((word32*)a[3]) = *((word32*)temp[3]) ^ *((word32*)rk[r][3]); in rijndaelEncryptRound()
278 temp[0][0] = T1[a[0][0]][1]; in rijndaelEncryptRound()
279 temp[0][1] = T1[a[1][1]][1]; in rijndaelEncryptRound()
280 temp[0][2] = T1[a[2][2]][1]; in rijndaelEncryptRound()
281 temp[0][3] = T1[a[3][3]][1]; in rijndaelEncryptRound()
282 temp[1][0] = T1[a[1][0]][1]; in rijndaelEncryptRound()
283 temp[1][1] = T1[a[2][1]][1]; in rijndaelEncryptRound()
284 temp[1][2] = T1[a[3][2]][1]; in rijndaelEncryptRound()
285 temp[1][3] = T1[a[0][3]][1]; in rijndaelEncryptRound()
286 temp[2][0] = T1[a[2][0]][1]; in rijndaelEncryptRound()
287 temp[2][1] = T1[a[3][1]][1]; in rijndaelEncryptRound()
288 temp[2][2] = T1[a[0][2]][1]; in rijndaelEncryptRound()
289 temp[2][3] = T1[a[1][3]][1]; in rijndaelEncryptRound()
290 temp[3][0] = T1[a[3][0]][1]; in rijndaelEncryptRound()
291 temp[3][1] = T1[a[0][1]][1]; in rijndaelEncryptRound()
292 temp[3][2] = T1[a[1][2]][1]; in rijndaelEncryptRound()
293 temp[3][3] = T1[a[2][3]][1]; in rijndaelEncryptRound()
294 *((word32*)a[0]) = *((word32*)temp[0]) ^ *((word32*)rk[ROUNDS][0]); in rijndaelEncryptRound()
295 *((word32*)a[1]) = *((word32*)temp[1]) ^ *((word32*)rk[ROUNDS][1]); in rijndaelEncryptRound()
296 *((word32*)a[2]) = *((word32*)temp[2]) ^ *((word32*)rk[ROUNDS][2]); in rijndaelEncryptRound()
297 *((word32*)a[3]) = *((word32*)temp[3]) ^ *((word32*)rk[ROUNDS][3]); in rijndaelEncryptRound()
319 #define temp xtemp.x8 in rijndaelDecrypt() macro
323 *((word32*)temp[0]) = *((word32*)(a )) ^ *((word32*)rk[ROUNDS][0]); in rijndaelDecrypt()
324 *((word32*)temp[1]) = *((word32*)(a+ 4)) ^ *((word32*)rk[ROUNDS][1]); in rijndaelDecrypt()
325 *((word32*)temp[2]) = *((word32*)(a+ 8)) ^ *((word32*)rk[ROUNDS][2]); in rijndaelDecrypt()
326 *((word32*)temp[3]) = *((word32*)(a+12)) ^ *((word32*)rk[ROUNDS][3]); in rijndaelDecrypt()
328 *((word32*)(b )) = *((const word32*)T5[temp[0][0]]) in rijndaelDecrypt()
329 ^ *((const word32*)T6[temp[3][1]]) in rijndaelDecrypt()
330 ^ *((const word32*)T7[temp[2][2]]) in rijndaelDecrypt()
331 ^ *((const word32*)T8[temp[1][3]]); in rijndaelDecrypt()
332 *((word32*)(b+ 4)) = *((const word32*)T5[temp[1][0]]) in rijndaelDecrypt()
333 ^ *((const word32*)T6[temp[0][1]]) in rijndaelDecrypt()
334 ^ *((const word32*)T7[temp[3][2]]) in rijndaelDecrypt()
335 ^ *((const word32*)T8[temp[2][3]]); in rijndaelDecrypt()
336 *((word32*)(b+ 8)) = *((const word32*)T5[temp[2][0]]) in rijndaelDecrypt()
337 ^ *((const word32*)T6[temp[1][1]]) in rijndaelDecrypt()
338 ^ *((const word32*)T7[temp[0][2]]) in rijndaelDecrypt()
339 ^ *((const word32*)T8[temp[3][3]]); in rijndaelDecrypt()
340 *((word32*)(b+12)) = *((const word32*)T5[temp[3][0]]) in rijndaelDecrypt()
341 ^ *((const word32*)T6[temp[2][1]]) in rijndaelDecrypt()
342 ^ *((const word32*)T7[temp[1][2]]) in rijndaelDecrypt()
343 ^ *((const word32*)T8[temp[0][3]]); in rijndaelDecrypt()
345 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[r][0]); in rijndaelDecrypt()
346 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[r][1]); in rijndaelDecrypt()
347 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[r][2]); in rijndaelDecrypt()
348 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[r][3]); in rijndaelDecrypt()
349 *((word32*)(b )) = *((const word32*)T5[temp[0][0]]) in rijndaelDecrypt()
350 ^ *((const word32*)T6[temp[3][1]]) in rijndaelDecrypt()
351 ^ *((const word32*)T7[temp[2][2]]) in rijndaelDecrypt()
352 ^ *((const word32*)T8[temp[1][3]]); in rijndaelDecrypt()
353 *((word32*)(b+ 4)) = *((const word32*)T5[temp[1][0]]) in rijndaelDecrypt()
354 ^ *((const word32*)T6[temp[0][1]]) in rijndaelDecrypt()
355 ^ *((const word32*)T7[temp[3][2]]) in rijndaelDecrypt()
356 ^ *((const word32*)T8[temp[2][3]]); in rijndaelDecrypt()
357 *((word32*)(b+ 8)) = *((const word32*)T5[temp[2][0]]) in rijndaelDecrypt()
358 ^ *((const word32*)T6[temp[1][1]]) in rijndaelDecrypt()
359 ^ *((const word32*)T7[temp[0][2]]) in rijndaelDecrypt()
360 ^ *((const word32*)T8[temp[3][3]]); in rijndaelDecrypt()
361 *((word32*)(b+12)) = *((const word32*)T5[temp[3][0]]) in rijndaelDecrypt()
362 ^ *((const word32*)T6[temp[2][1]]) in rijndaelDecrypt()
363 ^ *((const word32*)T7[temp[1][2]]) in rijndaelDecrypt()
364 ^ *((const word32*)T8[temp[0][3]]); in rijndaelDecrypt()
367 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[1][0]); in rijndaelDecrypt()
368 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[1][1]); in rijndaelDecrypt()
369 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[1][2]); in rijndaelDecrypt()
370 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[1][3]); in rijndaelDecrypt()
371 b[ 0] = S5[temp[0][0]]; in rijndaelDecrypt()
372 b[ 1] = S5[temp[3][1]]; in rijndaelDecrypt()
373 b[ 2] = S5[temp[2][2]]; in rijndaelDecrypt()
374 b[ 3] = S5[temp[1][3]]; in rijndaelDecrypt()
375 b[ 4] = S5[temp[1][0]]; in rijndaelDecrypt()
376 b[ 5] = S5[temp[0][1]]; in rijndaelDecrypt()
377 b[ 6] = S5[temp[3][2]]; in rijndaelDecrypt()
378 b[ 7] = S5[temp[2][3]]; in rijndaelDecrypt()
379 b[ 8] = S5[temp[2][0]]; in rijndaelDecrypt()
380 b[ 9] = S5[temp[1][1]]; in rijndaelDecrypt()
381 b[10] = S5[temp[0][2]]; in rijndaelDecrypt()
382 b[11] = S5[temp[3][3]]; in rijndaelDecrypt()
383 b[12] = S5[temp[3][0]]; in rijndaelDecrypt()
384 b[13] = S5[temp[2][1]]; in rijndaelDecrypt()
385 b[14] = S5[temp[1][2]]; in rijndaelDecrypt()
386 b[15] = S5[temp[0][3]]; in rijndaelDecrypt()
397 #undef temp in rijndaelDecrypt()
411 word8 temp[4], shift; in rijndaelDecryptRound() local
430 temp[0] = a[(0 + shift) & 3][i]; in rijndaelDecryptRound()
431 temp[1] = a[(1 + shift) & 3][i]; in rijndaelDecryptRound()
432 temp[2] = a[(2 + shift) & 3][i]; in rijndaelDecryptRound()
433 temp[3] = a[(3 + shift) & 3][i]; in rijndaelDecryptRound()
434 a[0][i] = temp[0]; in rijndaelDecryptRound()
435 a[1][i] = temp[1]; in rijndaelDecryptRound()
436 a[2][i] = temp[2]; in rijndaelDecryptRound()
437 a[3][i] = temp[3]; in rijndaelDecryptRound()
477 temp[0] = a[(0 + shift) & 3][i]; in rijndaelDecryptRound()
478 temp[1] = a[(1 + shift) & 3][i]; in rijndaelDecryptRound()
479 temp[2] = a[(2 + shift) & 3][i]; in rijndaelDecryptRound()
480 temp[3] = a[(3 + shift) & 3][i]; in rijndaelDecryptRound()
481 a[0][i] = temp[0]; in rijndaelDecryptRound()
482 a[1][i] = temp[1]; in rijndaelDecryptRound()
483 a[2][i] = temp[2]; in rijndaelDecryptRound()
484 a[3][i] = temp[3]; in rijndaelDecryptRound()