• Home
  • Raw
  • Download

Lines Matching refs:ROUNDS

36 int rijndaelKeySched(word8 k[MAXKC][4], word8 W[MAXROUNDS+1][4][4], int ROUNDS) {  in rijndaelKeySched()  argument
46 int KC = ROUNDS - 6; in rijndaelKeySched()
54 for (j = 0; (j < KC) && (r < ROUNDS + 1); ) { in rijndaelKeySched()
64 while (r < ROUNDS + 1) { /* while not enough round key material calculated */ in rijndaelKeySched()
89 for (j = 0; (j < KC) && (r < ROUNDS + 1); ) { in rijndaelKeySched()
103 int rijndaelKeyEncToDec(word8 W[MAXROUNDS+1][4][4], int ROUNDS) { in rijndaelKeyEncToDec() argument
107 for (r = 1; r < ROUNDS; r++) { in rijndaelKeyEncToDec()
142 int rijndaelEncrypt(word8 in[16], word8 out[16], word8 rk[MAXROUNDS+1][4][4], int ROUNDS) { in rijndaelEncrypt() argument
178 for (r = 1; r < ROUNDS-1; r++) { 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() argument
245 if (rounds > ROUNDS) { in rijndaelEncryptRound()
246 rounds = ROUNDS; in rijndaelEncryptRound()
254 for (r = 1; (r <= rounds) && (r < ROUNDS); r++) { in rijndaelEncryptRound()
276 if (rounds == ROUNDS) { 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() argument
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()
344 for (r = ROUNDS-1; r > 1; r--) { in rijndaelDecrypt()
409 int rijndaelDecryptRound(word8 a[4][4], word8 rk[MAXROUNDS+1][4][4], int ROUNDS, int rounds) { in rijndaelDecryptRound() argument
414 if (rounds > ROUNDS) { in rijndaelDecryptRound()
415 rounds = 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()
440 for (r = ROUNDS-1; r > rounds; r--) { in rijndaelDecryptRound()