Lines Matching refs:KC
46 int KC = ROUNDS - 6; in rijndaelKeySched() local
48 for (j = KC-1; j >= 0; j--) { in rijndaelKeySched()
54 for (j = 0; (j < KC) && (r < ROUNDS + 1); ) { in rijndaelKeySched()
55 for (; (j < KC) && (t < 4); j++, t++) { in rijndaelKeySched()
66 tk[0][0] ^= S[tk[KC-1][1]]; in rijndaelKeySched()
67 tk[0][1] ^= S[tk[KC-1][2]]; in rijndaelKeySched()
68 tk[0][2] ^= S[tk[KC-1][3]]; in rijndaelKeySched()
69 tk[0][3] ^= S[tk[KC-1][0]]; in rijndaelKeySched()
72 if (KC != 8) { in rijndaelKeySched()
73 for (j = 1; j < KC; j++) { in rijndaelKeySched()
77 for (j = 1; j < KC/2; j++) { in rijndaelKeySched()
80 tk[KC/2][0] ^= S[tk[KC/2 - 1][0]]; in rijndaelKeySched()
81 tk[KC/2][1] ^= S[tk[KC/2 - 1][1]]; in rijndaelKeySched()
82 tk[KC/2][2] ^= S[tk[KC/2 - 1][2]]; in rijndaelKeySched()
83 tk[KC/2][3] ^= S[tk[KC/2 - 1][3]]; in rijndaelKeySched()
84 for (j = KC/2 + 1; j < KC; j++) { in rijndaelKeySched()
89 for (j = 0; (j < KC) && (r < ROUNDS + 1); ) { in rijndaelKeySched()
90 for (; (j < KC) && (t < 4); j++, t++) { in rijndaelKeySched()