Lines Matching defs:sres
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
67 u8 sres[4];
278 /* Parse IMSI:Kc:SRES:RAND */
330 /* SRES */
333 printf("%s:%d - Invalid SRES (%s)\n", fname, line,
339 if (strlen(pos) != 8 || hexstr2bin(pos, g->sres, 4)) {
340 printf("%s:%d - Invalid SRES (%s)\n", fname, line,
643 u8 _rand[16], sres[4], kc[8];
647 gsm_milenage(m->opc, m->ki, _rand, sres, kc);
651 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4);
669 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->sres, 4);