Lines Matching refs:tmp1
39 u8 tmp1[16], tmp2[16], tmp3[16]; in milenage_f1() local
44 tmp1[i] = _rand[i] ^ opc[i]; in milenage_f1()
45 if (aes_128_encrypt_block(k, tmp1, tmp1)) in milenage_f1()
60 tmp3[i] ^= tmp1[i]; in milenage_f1()
64 if (aes_128_encrypt_block(k, tmp3, tmp1)) in milenage_f1()
67 tmp1[i] ^= opc[i]; in milenage_f1()
69 os_memcpy(mac_a, tmp1, 8); /* f1 */ in milenage_f1()
71 os_memcpy(mac_s, tmp1 + 8, 8); /* f1* */ in milenage_f1()
91 u8 tmp1[16], tmp2[16], tmp3[16]; in milenage_f2345() local
96 tmp1[i] = _rand[i] ^ opc[i]; in milenage_f2345()
97 if (aes_128_encrypt_block(k, tmp1, tmp2)) in milenage_f2345()
108 tmp1[i] = tmp2[i] ^ opc[i]; in milenage_f2345()
109 tmp1[15] ^= 1; /* XOR c2 (= ..01) */ in milenage_f2345()
111 if (aes_128_encrypt_block(k, tmp1, tmp3)) in milenage_f2345()
124 tmp1[(i + 12) % 16] = tmp2[i] ^ opc[i]; in milenage_f2345()
125 tmp1[15] ^= 2; /* XOR c3 (= ..02) */ in milenage_f2345()
126 if (aes_128_encrypt_block(k, tmp1, ck)) in milenage_f2345()
136 tmp1[(i + 8) % 16] = tmp2[i] ^ opc[i]; in milenage_f2345()
137 tmp1[15] ^= 4; /* XOR c4 (= ..04) */ in milenage_f2345()
138 if (aes_128_encrypt_block(k, tmp1, ik)) in milenage_f2345()
148 tmp1[(i + 4) % 16] = tmp2[i] ^ opc[i]; in milenage_f2345()
149 tmp1[15] ^= 8; /* XOR c5 (= ..08) */ in milenage_f2345()
150 if (aes_128_encrypt_block(k, tmp1, tmp1)) in milenage_f2345()
153 akstar[i] = tmp1[i] ^ opc[i]; in milenage_f2345()