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