Lines Matching defs:opc

27  * @opc: OPc = 128-bit value derived from OP and K
36 int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
44 tmp1[i] = _rand[i] ^ opc[i];
57 tmp3[(i + 8) % 16] = tmp2[i] ^ opc[i];
67 tmp1[i] ^= opc[i];
78 * @opc: OPc = 128-bit value derived from OP and K
88 int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
96 tmp1[i] = _rand[i] ^ opc[i];
108 tmp1[i] = tmp2[i] ^ opc[i];
114 tmp3[i] ^= opc[i];
124 tmp1[(i + 12) % 16] = tmp2[i] ^ opc[i];
129 ck[i] ^= opc[i];
136 tmp1[(i + 8) % 16] = tmp2[i] ^ opc[i];
141 ik[i] ^= opc[i];
148 tmp1[(i + 4) % 16] = tmp2[i] ^ opc[i];
153 akstar[i] = tmp1[i] ^ opc[i];
162 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
173 void milenage_generate(const u8 *opc, const u8 *amf, const u8 *k,
184 if (milenage_f1(opc, k, _rand, sqn, amf, mac_a, NULL) ||
185 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) {
201 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
208 int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
215 if (milenage_f2345(opc, k, _rand, NULL, NULL, NULL, NULL, ak))
219 if (milenage_f1(opc, k, _rand, sqn, amf, NULL, mac_s) ||
228 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
235 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres, u8 *kc)
240 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL))
258 * @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
270 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand,
281 if (milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL))
297 if (milenage_f2345(opc, k, _rand, NULL, NULL, NULL, NULL, ak))
302 if (milenage_f1(opc, k, _rand, sqn, auts_amf, NULL, auts + 6))
310 if (milenage_f1(opc, k, _rand, rx_sqn, amf, mac_a, NULL))