Lines Matching refs:rk
142 int rijndaelEncrypt(word8 in[16], word8 out[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS) {
158 *((word32*)temp[0]) = *((word32*)(a )) ^ *((word32*)rk[0][0]);
159 *((word32*)temp[1]) = *((word32*)(a+ 4)) ^ *((word32*)rk[0][1]);
160 *((word32*)temp[2]) = *((word32*)(a+ 8)) ^ *((word32*)rk[0][2]);
161 *((word32*)temp[3]) = *((word32*)(a+12)) ^ *((word32*)rk[0][3]);
179 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[r][0]);
180 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[r][1]);
181 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[r][2]);
182 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[r][3]);
202 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[ROUNDS-1][0]);
203 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[ROUNDS-1][1]);
204 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[ROUNDS-1][2]);
205 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[ROUNDS-1][3]);
222 *((word32*)(b )) ^= *((word32*)rk[ROUNDS][0]);
223 *((word32*)(b+ 4)) ^= *((word32*)rk[ROUNDS][1]);
224 *((word32*)(b+ 8)) ^= *((word32*)rk[ROUNDS][2]);
225 *((word32*)(b+12)) ^= *((word32*)rk[ROUNDS][3]);
240 int rijndaelEncryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds) {
249 *((word32*)a[0]) = *((word32*)a[0]) ^ *((word32*)rk[0][0]);
250 *((word32*)a[1]) = *((word32*)a[1]) ^ *((word32*)rk[0][1]);
251 *((word32*)a[2]) = *((word32*)a[2]) ^ *((word32*)rk[0][2]);
252 *((word32*)a[3]) = *((word32*)a[3]) ^ *((word32*)rk[0][3]);
271 *((word32*)a[0]) = *((word32*)temp[0]) ^ *((word32*)rk[r][0]);
272 *((word32*)a[1]) = *((word32*)temp[1]) ^ *((word32*)rk[r][1]);
273 *((word32*)a[2]) = *((word32*)temp[2]) ^ *((word32*)rk[r][2]);
274 *((word32*)a[3]) = *((word32*)temp[3]) ^ *((word32*)rk[r][3]);
294 *((word32*)a[0]) = *((word32*)temp[0]) ^ *((word32*)rk[ROUNDS][0]);
295 *((word32*)a[1]) = *((word32*)temp[1]) ^ *((word32*)rk[ROUNDS][1]);
296 *((word32*)a[2]) = *((word32*)temp[2]) ^ *((word32*)rk[ROUNDS][2]);
297 *((word32*)a[3]) = *((word32*)temp[3]) ^ *((word32*)rk[ROUNDS][3]);
307 int rijndaelDecrypt(word8 in[16], word8 out[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS) {
323 *((word32*)temp[0]) = *((word32*)(a )) ^ *((word32*)rk[ROUNDS][0]);
324 *((word32*)temp[1]) = *((word32*)(a+ 4)) ^ *((word32*)rk[ROUNDS][1]);
325 *((word32*)temp[2]) = *((word32*)(a+ 8)) ^ *((word32*)rk[ROUNDS][2]);
326 *((word32*)temp[3]) = *((word32*)(a+12)) ^ *((word32*)rk[ROUNDS][3]);
345 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[r][0]);
346 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[r][1]);
347 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[r][2]);
348 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[r][3]);
367 *((word32*)temp[0]) = *((word32*)(b )) ^ *((word32*)rk[1][0]);
368 *((word32*)temp[1]) = *((word32*)(b+ 4)) ^ *((word32*)rk[1][1]);
369 *((word32*)temp[2]) = *((word32*)(b+ 8)) ^ *((word32*)rk[1][2]);
370 *((word32*)temp[3]) = *((word32*)(b+12)) ^ *((word32*)rk[1][3]);
387 *((word32*)(b )) ^= *((word32*)rk[0][0]);
388 *((word32*)(b+ 4)) ^= *((word32*)rk[0][1]);
389 *((word32*)(b+ 8)) ^= *((word32*)rk[0][2]);
390 *((word32*)(b+12)) ^= *((word32*)rk[0][3]);
409 int rijndaelDecryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds) {
418 *(word32 *)a[0] ^= *(word32 *)rk[ROUNDS][0];
419 *(word32 *)a[1] ^= *(word32 *)rk[ROUNDS][1];
420 *(word32 *)a[2] ^= *(word32 *)rk[ROUNDS][2];
421 *(word32 *)a[3] ^= *(word32 *)rk[ROUNDS][3];
441 *(word32 *)a[0] ^= *(word32 *)rk[r][0];
442 *(word32 *)a[1] ^= *(word32 *)rk[r][1];
443 *(word32 *)a[2] ^= *(word32 *)rk[r][2];
444 *(word32 *)a[3] ^= *(word32 *)rk[r][3];
489 *(word32 *)a[0] ^= *(word32 *)rk[0][0];
490 *(word32 *)a[1] ^= *(word32 *)rk[0][1];
491 *(word32 *)a[2] ^= *(word32 *)rk[0][2];
492 *(word32 *)a[3] ^= *(word32 *)rk[0][3];