/external/wpa_supplicant_8/hostapd/ |
hostapd.sim_db | 2 # IMSI:Kc:SRES:RAND 5 # SRES: hex, 4 octets
|
hlr_auc_gw.c | 31 * Kc/SRES/RAND/AUTN/IK/CK/RES/AUTS as hex strings. 34 * text file in IMSI:Kc:SRES:RAND format, IMSI in ASCII, other fields as hex 56 u8 sres[4]; member in struct:gsm_triplet 128 /* Parse IMSI:Kc:SRES:RAND */ 180 /* SRES */ 183 printf("%s:%d - Invalid SRES (%s)\n", fname, line, 189 if (strlen(pos) != 8 || hexstr2bin(pos, g->sres, 4)) { 190 printf("%s:%d - Invalid SRES (%s)\n", fname, line, 414 u8 _rand[16], sres[4], kc[8]; local 418 gsm_milenage(m->opc, m->ki, _rand, sres, kc) [all...] |
/external/valgrind/main/coregrind/m_syswrap/ |
syswrap-main.c | 370 /* was: return s1->what == s2->what && sr_EQ( s1->sres, s2->sres ); */ 371 if (s1->what == s2->what && sr_EQ( s1->sres, s2->sres )) 377 VG_(printf)(" {%lu %lu %u}\n", s1->sres._wLO, s1->sres._wHI, s1->sres._mode); 378 VG_(printf)(" {%lu %lu %u}\n", s2->sres._wLO, s2->sres._wHI, s2->sres._mode) 1527 SysRes sres local [all...] |
priv_types_n_macros.h | 76 SysRes sres; /* only meaningful for .what == SsComplete */ member in struct:SyscallStatus 297 #define SUCCESS (status->what == SsComplete && !sr_isError(status->sres)) 298 #define FAILURE (status->what == SsComplete && sr_isError(status->sres)) 306 vg_assert(!sr_isError(st->sres)); 307 return sr_Res(st->sres); 312 vg_assert(!sr_isError(st->sres)); 313 return sr_ResHI(st->sres); 318 vg_assert(sr_isError(st->sres)); 319 return sr_Err(st->sres); 326 status->sres = VG_(mk_SysRes_Success)(zzz); [all...] |
/external/valgrind/tsan/ |
common_util.cc | 97 SysRes sres = VG_(open)((const Char*)file_name.c_str(), VKI_O_RDONLY, 0); local 98 if (!sr_isError(sres)) 99 ret = sr_Res(sres);
|
/external/valgrind/main/coregrind/m_aspacemgr/ |
aspacemgr-common.c | 98 SysRes sres = VG_(do_syscall0)(__NR_getpid); local 99 aspacem_assert(!sr_isError(sres)); 100 return sr_Res(sres); 356 SysRes sres; local 365 sres = VG_(am_mmap_anon_float_valgrind)( szB ); 366 if (sr_isError(sres)) 369 stack = (VgStack*)(AddrH)sr_Res(sres); 375 sres = local_do_mprotect_NO_NOTIFY( 379 if (sr_isError(sres)) goto protect_failed; 385 sres = local_do_mprotect_NO_NOTIFY( [all...] |
aspacemgr-linux.c | 2240 SysRes sres; local 2314 SysRes sres; local 2372 SysRes sres; local 2446 SysRes sres; local 2526 SysRes sres = VG_(am_mmap_anon_float_valgrind)( size ); local 2547 SysRes sres; local 2639 SysRes sres; local 2856 SysRes sres; local 2967 SysRes sres; local 3027 SysRes sres; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/hlr_auc_gw/ |
milenage.h | 23 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres,
|
hlr_auc_gw.c | 37 * Kc/SRES/RAND/AUTN/IK/CK/RES/AUTS as hex strings. 40 * text file in IMSI:Kc:SRES:RAND format, IMSI in ASCII, other fields as hex 61 u8 sres[4]; member in struct:gsm_triplet 133 /* Parse IMSI:Kc:SRES:RAND */ 185 /* SRES */ 188 printf("%s:%d - Invalid SRES (%s)\n", fname, line, 194 if (strlen(pos) != 8 || hexstr2bin(pos, g->sres, 4)) { 195 printf("%s:%d - Invalid SRES (%s)\n", fname, line, 419 u8 _rand[16], sres[4], kc[8]; local 423 gsm_milenage(m->opc, m->ki, _rand, sres, kc) [all...] |
/external/wpa_supplicant_8/src/crypto/ |
milenage.h | 17 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres,
|
milenage.c | 231 * @sres: Buffer for SRES = 32-bit SRES 235 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres, u8 *kc) 247 os_memcpy(sres, res, 4); 250 sres[i] = res[i] ^ res[i + 4];
|
/external/wpa_supplicant_8/src/utils/ |
pcsc_funcs.h | 47 unsigned char *sres, unsigned char *kc);
|
/external/valgrind/main/coregrind/m_ume/ |
elf.c | 95 SysRes sres; local 102 sres = VG_(pread)(fd, &e->e, sizeof(e->e), 0); 103 if (sr_isError(sres) || sr_Res(sres) != sizeof(e->e)) { 105 filename, VG_(strerror)(sr_Err(sres))); 142 sres = VG_(pread)(fd, e->p, phsz, e->e.e_phoff); 143 if (sr_isError(sres) || sr_Res(sres) != phsz) { 145 VG_(strerror)(sr_Err(sres))); 302 SysRes sres; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
eap_sim.c | 34 u8 sres[3][EAP_SIM_SRES_LEN]; member in struct:eap_sim_data 157 data->sres[0], data->kc[0]) || 159 data->sres[1], data->kc[1]) || 162 data->sres[2], data->kc[2]))) { 195 data->sres[i], data->kc[i])) { 203 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: SRES", 204 data->sres[i], EAP_SIM_SRES_LEN); 213 /* These hardcoded Kc and SRES values are used for testing. RAND to 220 wpa_printf(MSG_DEBUG, "EAP-SIM: Use hardcoded Kc and SRES " 228 os_memcpy(data->sres[i], "\xd1\xd2\xd3\xd4" [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
eap_sim.c | 27 u8 sres[3][EAP_SIM_SRES_LEN]; member in struct:eap_sim_data 150 data->sres[0], data->kc[0]) || 152 data->sres[1], data->kc[1]) || 155 data->sres[2], data->kc[2]))) { 188 data->sres[i], data->kc[i])) { 196 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: SRES", 197 data->sres[i], EAP_SIM_SRES_LEN); 206 /* These hardcoded Kc and SRES values are used for testing. RAND to 213 wpa_printf(MSG_DEBUG, "EAP-SIM: Use hardcoded Kc and SRES " 221 os_memcpy(data->sres[i], "\xd1\xd2\xd3\xd4" [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
pcsc_funcs.h | 51 unsigned char *sres, unsigned char *kc);
|
pcsc_funcs.c | 1030 * @sres: 4-byte buffer for SRES 1039 * successfully, SRES and Kc values will be written into sres and kc buffers. 1042 unsigned char *sres, unsigned char *kc) 1094 os_memcpy(sres, buf, 4); 1108 os_memcpy(sres, buf + 1, 4); 1112 wpa_hexdump(MSG_DEBUG, "SCARD: GSM auth - SRES", sres, 4); [all...] |
/external/wpa_supplicant_8/src/eap_server/ |
eap_sim_db.h | 30 u8 *_rand, u8 *kc, u8 *sres,
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
eap_sim_db.h | 38 u8 *_rand, u8 *kc, u8 *sres,
|
/external/valgrind/main/exp-bbv/ |
bbv_main.c | 108 SysRes sres; local 113 sres = VG_(open)(pc_out_file, VKI_O_CREAT|VKI_O_TRUNC|VKI_O_WRONLY, 115 if (sr_isError(sres)) { 119 pctrace_fd = sr_Res(sres); 139 SysRes sres; local 152 sres = VG_(open)(temp_string, VKI_O_CREAT|VKI_O_TRUNC|VKI_O_WRONLY, 155 if (sr_isError(sres)) { 160 return sr_Res(sres);
|
/external/valgrind/main/coregrind/ |
m_libcproc.c | 533 SysRes sres; local 537 sres = VG_(do_syscall2)(__NR_getgroups, size, (Addr)list16); 538 if (sr_isError(sres)) 540 if (sr_Res(sres) > size) 542 for (i = 0; i < sr_Res(sres); i++) 544 return sr_Res(sres); 549 SysRes sres; 550 sres = VG_(do_syscall2)(__NR_getgroups, size, (Addr)list); 551 if (sr_isError(sres)) 553 return sr_Res(sres); [all...] |
m_mallocfree.c | 726 SysRes sres = VG_(open)(VG_(clo_memfs_malloc_path), local 728 if (!sr_isError(sres)) { 729 memfs_fd = sr_Res(sres); 756 SysRes sres = VG_(am_mmap_file_float_valgrind_flags) local 762 char *mem = (char*)sr_Res(sres); 767 if (sr_isError(sres)) { 770 VG_(printf)("... ok; res=%p\n", (void*)sr_Res(sres)); 772 return sres; 785 SysRes sres; local 816 sres = MemfsAlloc(cszB) 874 SysRes sres; local 1573 SysRes sres = VG_(am_sbrk_anon_float_valgrind)(sizeof(Superblock *) * local [all...] |
/external/valgrind/main/coregrind/m_coredump/ |
coredump-elf.c | 513 SysRes sres; local 527 sres = VG_(open)(buf, oflags, VKI_S_IRUSR|VKI_S_IWUSR); 528 if (!sr_isError(sres)) { 529 core_fd = sr_Res(sres); 533 if (sr_isError(sres) && sr_Err(sres) != VKI_EEXIST)
|
/external/wpa_supplicant_6/wpa_supplicant/ |
eapol_test.c | 795 unsigned char sres[4]; local 835 if (scard_gsm_auth(scard, _rand, sres, kc)) 839 if (scard_gsm_auth(scard, _rand, sres, kc)) 900 unsigned char sres[4]; local 935 if (scard_gsm_auth(scard, _rand, sres, kc)) 938 /* IMSI:Kc:SRES:RAND */ 946 printf("%02X", sres[j]);
|
/external/wpa_supplicant_8/wpa_supplicant/ |
eapol_test.c | 835 unsigned char sres[4]; local 878 if (scard_gsm_auth(scard, _rand, sres, kc)) 882 if (scard_gsm_auth(scard, _rand, sres, kc)) 943 unsigned char sres[4]; local 978 if (scard_gsm_auth(scard, _rand, sres, kc)) 981 /* IMSI:Kc:SRES:RAND */ 989 printf("%02X", sres[j]); [all...] |