|
|
@ -72,14 +72,8 @@ public:
|
|
|
|
int init(hss_args_t *hss_args, srslte::log_filter* hss_log);
|
|
|
|
int init(hss_args_t *hss_args, srslte::log_filter* hss_log);
|
|
|
|
void stop(void);
|
|
|
|
void stop(void);
|
|
|
|
|
|
|
|
|
|
|
|
void gen_rand(uint8_t rand_[16]);
|
|
|
|
|
|
|
|
bool get_k_amf_op_sqn(uint64_t imsi, uint8_t *k, uint8_t *amf, uint8_t *op, uint8_t *sqn);
|
|
|
|
|
|
|
|
bool gen_auth_info_answer(uint64_t imsi, uint8_t *k_asme, uint8_t *autn, uint8_t *rand, uint8_t *xres);
|
|
|
|
bool gen_auth_info_answer(uint64_t imsi, uint8_t *k_asme, uint8_t *autn, uint8_t *rand, uint8_t *xres);
|
|
|
|
bool gen_auth_info_answer_milenage(uint64_t imsi, uint8_t *k_asme, uint8_t *autn, uint8_t *rand, uint8_t *xres);
|
|
|
|
|
|
|
|
bool gen_auth_info_answer_xor(uint64_t imsi, uint8_t *k_asme, uint8_t *autn, uint8_t *rand, uint8_t *xres);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<std::string> split_string(const std::string &str, char delimiter);
|
|
|
|
|
|
|
|
void get_uint_vec_from_hex_str(const std::string &key_str, uint8_t *key, uint len);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
@ -91,6 +85,16 @@ private:
|
|
|
|
|
|
|
|
|
|
|
|
std::map<uint64_t,hss_ue_ctx_t*> m_imsi_to_ue_ctx;
|
|
|
|
std::map<uint64_t,hss_ue_ctx_t*> m_imsi_to_ue_ctx;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void gen_rand(uint8_t rand_[16]);
|
|
|
|
|
|
|
|
bool get_k_amf_op_sqn(uint64_t imsi, uint8_t *k, uint8_t *amf, uint8_t *op, uint8_t *sqn);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool gen_auth_info_answer_milenage(uint64_t imsi, uint8_t *k_asme, uint8_t *autn, uint8_t *rand, uint8_t *xres);
|
|
|
|
|
|
|
|
bool gen_auth_info_answer_xor(uint64_t imsi, uint8_t *k_asme, uint8_t *autn, uint8_t *rand, uint8_t *xres);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<std::string> split_string(const std::string &str, char delimiter);
|
|
|
|
|
|
|
|
void get_uint_vec_from_hex_str(const std::string &key_str, uint8_t *key, uint len);
|
|
|
|
|
|
|
|
|
|
|
|
void increment_sqn(uint64_t imsi);
|
|
|
|
void increment_sqn(uint64_t imsi);
|
|
|
|
|
|
|
|
|
|
|
|
bool set_auth_algo(std::string auth_algo);
|
|
|
|
bool set_auth_algo(std::string auth_algo);
|
|
|
|