Lines Matching defs:opc

33  * @opc: OPc = 128-bit value derived from OP and K
42 int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
50 tmp1[i] = _rand[i] ^ opc[i];
63 tmp3[(i + 8) % 16] = tmp2[i] ^ opc[i];
73 tmp1[i] ^= opc[i];
84 * @opc: OPc = 128-bit value derived from OP and K
94 int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
102 tmp1[i] = _rand[i] ^ opc[i];
114 tmp1[i] = tmp2[i] ^ opc[i];
120 tmp3[i] ^= opc[i];
130 tmp1[(i + 12) % 16] = tmp2[i] ^ opc[i];
135 ck[i] ^= opc[i];
142 tmp1[(i + 8) % 16] = tmp2[i] ^ opc[i];
147 ik[i] ^= opc[i];
154 tmp1[(i + 4) % 16] = tmp2[i] ^ opc[i];
159 akstar[i] = tmp1[i] ^ opc[i];
168 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
179 void milenage_generate(const u8 *opc, const u8 *amf, const u8 *k,
190 if (milenage_f1(opc, k, _rand, sqn, amf, mac_a, NULL) ||
191 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) {
207 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
214 int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
221 if (milenage_f2345(opc, k, _rand, NULL, NULL, NULL, NULL, ak))
225 if (milenage_f1(opc, k, _rand, sqn, amf, NULL, mac_s) ||
234 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
241 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres, u8 *kc)
246 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL))
264 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
276 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand,
287 if (milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL))
303 if (milenage_f2345(opc, k, _rand, NULL, NULL, NULL, NULL, ak))
308 if (milenage_f1(opc, k, _rand, sqn, auts_amf, NULL, auts + 6))
316 if (milenage_f1(opc, k, _rand, rx_sqn, amf, mac_a, NULL))