Home
last modified time | relevance | path

Searched refs:opc (Results 1 – 7 of 7) sorted by relevance

/hostap-latest/src/crypto/
Dmilenage.c36 int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand, in milenage_f1() argument
44 tmp1[i] = _rand[i] ^ opc[i]; in milenage_f1()
57 tmp3[(i + 8) % 16] = tmp2[i] ^ opc[i]; in milenage_f1()
67 tmp1[i] ^= opc[i]; in milenage_f1()
88 int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand, in milenage_f2345() argument
96 tmp1[i] = _rand[i] ^ opc[i]; in milenage_f2345()
108 tmp1[i] = tmp2[i] ^ opc[i]; in milenage_f2345()
114 tmp3[i] ^= opc[i]; in milenage_f2345()
124 tmp1[(i + 12) % 16] = tmp2[i] ^ opc[i]; in milenage_f2345()
129 ck[i] ^= opc[i]; in milenage_f2345()
[all …]
Dmilenage.h12 void milenage_generate(const u8 *opc, const u8 *amf, const u8 *k,
15 int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
17 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres,
19 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand,
22 int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
24 int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
/hostap-latest/tests/
Dtest-milenage.c14 static int milenage_opc(const u8 *op, const u8 *k, u8 *opc) in milenage_opc() argument
18 if (aes_128_encrypt_block(k, op, opc) < 0) in milenage_opc()
21 opc[i] ^= op[i]; in milenage_opc()
29 u8 opc[16]; member
258 u8 opc[16]; member
698 u8 buf[16], buf2[16], buf3[16], buf4[16], buf5[16], opc[16]; in main() local
711 milenage_opc(t->op, t->k, opc); in main()
712 if (memcmp(opc, t->opc, 16) != 0) { in main()
717 if (milenage_f1(opc, t->k, t->rand, t->sqn, t->amf, buf, buf2) in main()
727 if (milenage_f2345(opc, t->k, t->rand, buf, buf2, buf3, buf4, in main()
[all …]
/hostap-latest/hostapd/
Dhlr_auc_gw.c86 u8 opc[16]; member
180 hexstr2bin(argv[i], m->opc, sizeof(m->opc))) { in get_milenage_cb()
448 hexstr2bin(pos, m->opc, 16)) { in read_milenage()
541 pos += wpa_snprintf_hex(pos, end - pos, m->opc, 16); in update_milenage_file()
621 gsm_milenage(m->opc, m->ki, _rand, sres, kc); in sim_req_auth()
688 gsm_milenage(m->opc, m->ki, _rand, sres, kc); in gsm_auth_req()
763 milenage_generate(m->opc, m->amf, m->ki, m->sqn, _rand, in aka_req_auth()
847 if (milenage_auts(m->opc, m->ki, _rand, _auts, sqn)) { in aka_auts()
Dhlr_auc_gw.txt46 opc CHAR(32) NOT NULL,
50 INSERT INTO milenage(imsi,ki,opc,amf,sqn) VALUES(
57 INSERT INTO milenage(imsi,ki,opc,amf,sqn) VALUES(
/hostap-latest/src/eap_peer/
Deap_sim.c315 u8 opc[16], k[16]; in eap_sim_gsm_auth() local
333 if (hexstr2bin(pos, opc, 16)) in eap_sim_gsm_auth()
337 if (gsm_milenage(opc, k, data->rand[i], in eap_sim_gsm_auth()
Deap_aka.c307 u8 opc[16], k[16], sqn[6]; in eap_aka_umts_auth() local
324 if (hexstr2bin(pos, opc, 16)) in eap_aka_umts_auth()
334 return milenage_check(opc, k, sqn, data->rand, data->autn, in eap_aka_umts_auth()