• Home
  • Raw
  • Download

Lines Matching refs:rk

142 int rijndaelEncrypt(word8 in[16], word8 out[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS) {  in rijndaelEncrypt()
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()
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()
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()
222 *((word32*)(b )) ^= *((word32*)rk[ROUNDS][0]); in rijndaelEncrypt()
223 *((word32*)(b+ 4)) ^= *((word32*)rk[ROUNDS][1]); in rijndaelEncrypt()
224 *((word32*)(b+ 8)) ^= *((word32*)rk[ROUNDS][2]); in rijndaelEncrypt()
225 *((word32*)(b+12)) ^= *((word32*)rk[ROUNDS][3]); in rijndaelEncrypt()
240 int rijndaelEncryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds) { in rijndaelEncryptRound()
249 *((word32*)a[0]) = *((word32*)a[0]) ^ *((word32*)rk[0][0]); in rijndaelEncryptRound()
250 *((word32*)a[1]) = *((word32*)a[1]) ^ *((word32*)rk[0][1]); in rijndaelEncryptRound()
251 *((word32*)a[2]) = *((word32*)a[2]) ^ *((word32*)rk[0][2]); in rijndaelEncryptRound()
252 *((word32*)a[3]) = *((word32*)a[3]) ^ *((word32*)rk[0][3]); 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()
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()
307 int rijndaelDecrypt(word8 in[16], word8 out[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS) { in rijndaelDecrypt()
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()
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()
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()
387 *((word32*)(b )) ^= *((word32*)rk[0][0]); in rijndaelDecrypt()
388 *((word32*)(b+ 4)) ^= *((word32*)rk[0][1]); in rijndaelDecrypt()
389 *((word32*)(b+ 8)) ^= *((word32*)rk[0][2]); in rijndaelDecrypt()
390 *((word32*)(b+12)) ^= *((word32*)rk[0][3]); in rijndaelDecrypt()
409 int rijndaelDecryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds) { in rijndaelDecryptRound()
418 *(word32 *)a[0] ^= *(word32 *)rk[ROUNDS][0]; in rijndaelDecryptRound()
419 *(word32 *)a[1] ^= *(word32 *)rk[ROUNDS][1]; in rijndaelDecryptRound()
420 *(word32 *)a[2] ^= *(word32 *)rk[ROUNDS][2]; in rijndaelDecryptRound()
421 *(word32 *)a[3] ^= *(word32 *)rk[ROUNDS][3]; in rijndaelDecryptRound()
441 *(word32 *)a[0] ^= *(word32 *)rk[r][0]; in rijndaelDecryptRound()
442 *(word32 *)a[1] ^= *(word32 *)rk[r][1]; in rijndaelDecryptRound()
443 *(word32 *)a[2] ^= *(word32 *)rk[r][2]; in rijndaelDecryptRound()
444 *(word32 *)a[3] ^= *(word32 *)rk[r][3]; in rijndaelDecryptRound()
489 *(word32 *)a[0] ^= *(word32 *)rk[0][0]; in rijndaelDecryptRound()
490 *(word32 *)a[1] ^= *(word32 *)rk[0][1]; in rijndaelDecryptRound()
491 *(word32 *)a[2] ^= *(word32 *)rk[0][2]; in rijndaelDecryptRound()
492 *(word32 *)a[3] ^= *(word32 *)rk[0][3]; in rijndaelDecryptRound()