Searched refs:sqn (Results 1 – 5 of 5) sorted by relevance
/external/wpa_supplicant_8/src/crypto/ |
D | milenage.c | 37 const u8 *sqn, const u8 *amf, u8 *mac_a, u8 *mac_s) in milenage_f1() argument 49 os_memcpy(tmp2, sqn, 6); in milenage_f1() 174 const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik, in milenage_generate() argument 184 if (milenage_f1(opc, k, _rand, sqn, amf, mac_a, NULL) || in milenage_generate() 193 autn[i] = sqn[i] ^ ak[i]; in milenage_generate() 209 u8 *sqn) in milenage_auts() argument 218 sqn[i] = auts[i] ^ ak[i]; in milenage_auts() 219 if (milenage_f1(opc, k, _rand, sqn, amf, NULL, mac_s) || in milenage_auts() 270 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand, in milenage_check() argument 295 if (os_memcmp(rx_sqn, sqn, 6) <= 0) { in milenage_check() [all …]
|
D | milenage.h | 13 const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik, 16 u8 *sqn); 19 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand, 23 const u8 *sqn, const u8 *amf, u8 *mac_a, u8 *mac_s);
|
/external/wpa_supplicant_8/hostapd/ |
D | hlr_auc_gw.c | 88 u8 sqn[6]; member 192 hexstr2bin(argv[i], m->sqn, sizeof(m->sqn))) { in get_milenage_cb() 235 pos += wpa_snprintf_hex(pos, sizeof(val), m->sqn, 6); in db_update_milenage_sqn() 519 if (strlen(pos) != 12 || hexstr2bin(pos, m->sqn, 6)) { in read_milenage() 599 pos += wpa_snprintf_hex(pos, end - pos, m->sqn, 6); in update_milenage_file() 766 static void inc_sqn(u8 *sqn) in inc_sqn() argument 779 val = ((u64) WPA_GET_BE32(sqn) << 16) | ((u64) WPA_GET_BE16(sqn + 4)); in inc_sqn() 783 WPA_PUT_BE32(sqn, val >> 16); in inc_sqn() 784 WPA_PUT_BE16(sqn + 4, val & 0xffff); in inc_sqn() 807 inc_sqn(m->sqn); in aka_req_auth() [all …]
|
D | hlr_auc_gw.txt | 48 sqn CHAR(12) NOT NULL 50 INSERT INTO milenage(imsi,ki,opc,amf,sqn) VALUES( 57 INSERT INTO milenage(imsi,ki,opc,amf,sqn) VALUES(
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_aka.c | 267 u8 opc[16], k[16], sqn[6]; in eap_aka_umts_auth() local 291 if (hexstr2bin(pos, sqn, 6)) in eap_aka_umts_auth() 294 return milenage_check(opc, k, sqn, data->rand, data->autn, in eap_aka_umts_auth()
|