Home | History | Annotate | Download | only in crypto

Lines Matching refs:rk

779 int rijndaelKeySetupEnc(u32 rk[], const u8 cipherKey[], int keyBits)
784 rk[0] = GETU32(cipherKey );
785 rk[1] = GETU32(cipherKey + 4);
786 rk[2] = GETU32(cipherKey + 8);
787 rk[3] = GETU32(cipherKey + 12);
791 temp = rk[3];
792 rk[4] = rk[0] ^ TE421(temp) ^ TE432(temp) ^
794 rk[5] = rk[1] ^ rk[4];
795 rk[6] = rk[2] ^ rk[5];
796 rk[7] = rk[3] ^ rk[6];
797 rk += 4;
802 rk[4] = GETU32(cipherKey + 16);
803 rk[5] = GETU32(cipherKey + 20);
807 temp = rk[5];
808 rk[6] = rk[0] ^ TE421(temp) ^ TE432(temp) ^
810 rk[7] = rk[1] ^ rk[6];
811 rk[8] = rk[2] ^ rk[7];
812 rk[9] = rk[3] ^ rk[8];
815 rk[10] = rk[4] ^ rk[9];
816 rk[11] = rk[5] ^ rk[10];
817 rk += 6;
821 rk[6] = GETU32(cipherKey + 24);
822 rk[7] = GETU32(cipherKey + 28);
826 temp = rk[7];
827 rk[8] = rk[0] ^ TE421(temp) ^ TE432(temp) ^
829 rk[9] = rk[1] ^ rk[8];
830 rk[10] = rk[2] ^ rk[9];
831 rk[11] = rk[3] ^ rk[10];
834 temp = rk[11];
835 rk[12] = rk[4] ^ TE411(temp) ^ TE422(temp) ^
837 rk[13] = rk[5] ^ rk[12];
838 rk[14] = rk[6] ^ rk[13];
839 rk[15] = rk[7] ^ rk[14];
840 rk += 8;