|
|
|
@ -61,6 +61,7 @@ KASME : a8.27.57.5e.ea.1a.10.17.3a.a1.bf.ce.4b.0c.21.85.e0.51.ef.bd.91.7f.fe.f
|
|
|
|
|
|
|
|
|
|
uint8_t rand_enb[] = {0x88, 0x38, 0xc3, 0x55, 0xc8, 0x78, 0xaa, 0x57, 0x21, 0x49, 0xfe, 0x69, 0xdb, 0x68, 0x6b, 0x5a};
|
|
|
|
|
uint8_t autn_enb[] = {0xd7, 0x44, 0x51, 0x9b, 0x25, 0xaa, 0x80, 0x00, 0x84, 0xba, 0x37, 0xb0, 0xf6, 0x73, 0x4d, 0xd1};
|
|
|
|
|
uint8_t kasme[] = {0xa8, 0x27, 0x57, 0x5e, 0xea, 0x1a, 0x10, 0x17, 0x3a, 0xa1, 0xbf, 0xce, 0x4b, 0x0c, 0x21, 0x85, 0xe0, 0x51, 0xef, 0xbd, 0x91, 0x7f, 0xfe, 0xf5, 0x1f, 0x74, 0x29, 0x61, 0xf9, 0x03, 0x7a, 0x35};
|
|
|
|
|
|
|
|
|
|
uint16 mcc = 208;
|
|
|
|
|
uint16 mnc = 93;
|
|
|
|
@ -74,14 +75,14 @@ int main(int argc, char **argv)
|
|
|
|
|
usim_args_t args;
|
|
|
|
|
args.algo = "milenage";
|
|
|
|
|
args.amf = "8000";
|
|
|
|
|
args.imei = "35609204079301";
|
|
|
|
|
args.imei = "356092040793011";
|
|
|
|
|
args.imsi = "208930000000001";
|
|
|
|
|
args.k = "8BAF473F2F8FD09487CCCBD7097C6862";
|
|
|
|
|
args.op = "11111111111111111111111111111111";
|
|
|
|
|
|
|
|
|
|
srsue::usim usim;
|
|
|
|
|
usim.init(&args, &usim_log);
|
|
|
|
|
usim.generate_authentication_response(rand_enb, autn_enb, mcc, mnc, &net_valid, res);
|
|
|
|
|
usim.generate_authentication_response(rand_enb, autn_enb, mcc, mnc, &net_valid, res, kasme);
|
|
|
|
|
|
|
|
|
|
assert(net_valid == true);
|
|
|
|
|
}
|
|
|
|
|