From 53f05354e658145dc3958f645dcddeb4b1618974 Mon Sep 17 00:00:00 2001 From: David Rupprecht Date: Sun, 28 Jan 2018 16:39:23 +0100 Subject: [PATCH] Making HSS functions private --- srsepc/hdr/hss/hss.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/srsepc/hdr/hss/hss.h b/srsepc/hdr/hss/hss.h index 0f05a02bb..34cd71b7c 100644 --- a/srsepc/hdr/hss/hss.h +++ b/srsepc/hdr/hss/hss.h @@ -72,14 +72,8 @@ public: int init(hss_args_t *hss_args, srslte::log_filter* hss_log); 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_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 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: @@ -91,6 +85,16 @@ private: std::map 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 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); bool set_auth_algo(std::string auth_algo);