In a 5G network, the function of the HSS is split into the authentication server function (AUSF), the UDM, and the UDR (when it is a stateless architecture). The AUSF authenticates servers and provides encryption keys. The UDM stores and manages the data.