UE/API: rename _usim_api_data to usim_sqn_data and move it to usim_data
This commit is contained in:
@@ -115,6 +115,23 @@ typedef struct {
|
||||
uint8_t usim_api_k[USIM_API_K_SIZE];
|
||||
} usim_keys_t;
|
||||
|
||||
/*
|
||||
* List of last used Sequence Numbers SQN
|
||||
*/
|
||||
#define USIM_API_AK_SIZE 6
|
||||
#define USIM_API_SQN_SIZE USIM_API_AK_SIZE
|
||||
#define USIM_API_SQNMS_SIZE USIM_API_SQN_SIZE
|
||||
|
||||
typedef struct {
|
||||
/* Highest sequence number the USIM has ever accepted */
|
||||
uint8_t sqn_ms[USIM_API_SQNMS_SIZE];
|
||||
/* List of the last used sequence numbers */
|
||||
#define USIM_API_SQN_LIST_SIZE 32
|
||||
uint8_t n_sqns;
|
||||
uint32_t sqn[USIM_API_SQN_LIST_SIZE];
|
||||
} usim_sqn_data_t;
|
||||
|
||||
|
||||
/*
|
||||
* EPS NAS Security Context
|
||||
* ------------------------
|
||||
@@ -336,6 +353,8 @@ typedef struct {
|
||||
usim_nasconfig_t nasconfig;
|
||||
/* usim test mode */
|
||||
uint8_t usimtestmode;
|
||||
usim_sqn_data_t usim_sqn_data;
|
||||
>>>>>>> UE/API: rename _usim_api_data to usim_sqn_data and move it to usim_data
|
||||
} usim_data_t;
|
||||
|
||||
/****************************************************************************/
|
||||
@@ -350,7 +369,7 @@ int usim_api_read(usim_data_t* data);
|
||||
|
||||
int usim_api_write(const usim_data_t* data);
|
||||
|
||||
int usim_api_authenticate(uint8_t usim_api_k[USIM_API_K_SIZE], const OctetString* rand_pP, const OctetString* autn_pP,
|
||||
int usim_api_authenticate(usim_data_t *usim_data, const OctetString* rand_pP, const OctetString* autn_pP,
|
||||
OctetString* auts, OctetString* res,
|
||||
OctetString* ck, OctetString* ik);
|
||||
int usim_api_authenticate_test(const OctetString* rand, const OctetString* autn,
|
||||
|
||||
Reference in New Issue
Block a user