summaryrefslogtreecommitdiff
path: root/data/mbim-service-auth.h
blob: 7e1b47ff441ada03c79f47ff7effdc22fd90e6c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * ID: 1
 * Command: Aka
 */

#define MBIM_CMD_AUTH_AKA	1

struct mbim_auth_aka_q = {
	struct mbim_byte_array rand;
	struct mbim_byte_array autn;
}

struct mbim_auth_aka_r =
	struct mbim_byte_array res;
	u32 reslen;
	struct mbim_byte_array integratingkey;
	struct mbim_byte_array cipheringkey;
	struct mbim_byte_array auts;
}

/*
 * ID: 2
 * Command: Akap
 */

#define MBIM_CMD_AUTH_AKAP	2

struct mbim_auth_akap_q = {
	struct mbim_byte_array rand;
	struct mbim_byte_array autn;
	struct mbim_string networkname;
}

struct mbim_auth_akap_r =
	struct mbim_byte_array res;
	u32 reslen;
	struct mbim_byte_array integratingkey;
	struct mbim_byte_array cipheringkey;
	struct mbim_byte_array auts;
}

/*
 * ID: 3
 * Command: Sim
 */

#define MBIM_CMD_AUTH_SIM	3

struct mbim_auth_sim_q = {
	struct mbim_byte_array rand1;
	struct mbim_byte_array rand2;
	struct mbim_byte_array rand3;
	u32 n;
}

struct mbim_auth_sim_r =
	u32 sres1;
	u64 kc1;
	u32 sres2;
	u64 kc2;
	u32 sres3;
	u64 kc3;
	u32 n;
}