mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
Previously, the EPC used the UE-provided KSI directly in the Authentication Request (except for the special case where the UE sent OGS_NAS_KSI_NO_KEY_IS_AVAILABLE, which was reset to 0). This commit changes the EPC to follow the 5G Core approach for issuing KSI in Attach-Request. Now, when a Attach Request is received and a new Authentication Vector is generated, the EPC performs the following steps: - Extract the KSI value from the UE's request. - Increment the extracted KSI by 1. - Use the incremented KSI in the Authentication Request sent to the UE. This detailed process ensures that the EPC issues the KSI consistently with 5G Core standards, improving key management and interoperability.