Step 0.
The discoverer 5G ProSe End UE and discoveree 5G ProSe End UE are provisioned with the discovery security materials associated with a 5G ProSe Direct Discovery service based on the discovery security materials provisioning procedure for Restricted 5G ProSe Direct Discovery, as specified defined in
clause 6.1.3.2.2.2.
Step 1.
The discoverer 5G ProSe End UE, discoveree 5G ProSe End UE and 5G ProSe UE-to-UE Relay are provisioned with the discovery security materials associated with an RSC based on the discovery security materials provisioning procedure for UE-to-Network Relay Discovery, as specified in
clause 6.1.3.2.2.2. For the discovery security materials provisioning procedure for thebetween discoverer 5G ProSe End UE and 5G ProSe UE-to-UE Relay, discoverer 5G ProSe End UE plays the role of 5G ProSe Remote UE , and the 5G ProSe UE-to-UE Relay plays the role of a 5G ProSe UE-to-Network Relay.The discoverer 5G ProSe End UE shall construct a direct discovery set that contains two End UE discovery infos.Each End UE discovery info is protected using the discovery security materials associated with the 5G ProSe Direct Discovery service as specified in
clause 6.1.3.2.3. The first protected End UE discovery info shall include the application layer ID of the discoveree 5G ProSe End UE, the UTC-based counter LSB parameter, and a MIC IE. The second protected End UE discovery info shall include the application layer ID of the discoverer 5G ProSe End UE, the UTC-based counter LSB parameter, and a MIC IE. Then, the discoverer 5G ProSe End UE shall include the direct discovery set in the Solicitation message and protect the Solicitation message using the discovery security materials associated with the RSC as specified in
clause 6.1.3.2.3. The solicitation message is sent to the 5G ProSe UE-to-UE Relay.
Step 2.
On receiving the 5G ProSe UE-to-UE Relay Discovery Solicitation message from the discoverer 5G ProSe End UE, the 5G ProSe UE-to-UE Relay shall process the received UE-to-UE Relay Discovery Solicitation message using the discovery security materials associated with the RSC as specified in
clause 6.1.3.2.3.
If the verification is successful, the 5G ProSe UE-to-UE Relay shall modify the UE-to-UE Relay Discovery Solicitation message to include User Info ID of the 5G ProSe UE-to-UE Relay.
The 5G ProSe UE-to-UE Relay Discovery Solicitation message is protected using the security materials associated with the RSC as specified in
clause 6.1.3.2.3.
Then, 5G ProSe UE-to-UE Relay sends the message to the discoveree 5G ProSe End UE.
Step 3.
The discoveree 5G ProSe End UE shall process the received UE-to-UE Relay Discovery Solicitation message using the discovery security materials associated with the RSC as specified in
clause 6.1.3.2.3.
If the verification is successful, the discoveree 5G ProSe End UE shall extract the protected direct discovery set from the message and process the protected End UE discovery infos using the discovery security materials associated with the 5G ProSe Direct Discovery service as specified in
clause 6.1.3.2.3. If the verification of the second End UE discovery info is successful and the application layer ID of the discoveree matches, the discoveree 5G ProSe End UE processes the first End UE discovery info.
The discoveree 5G ProSe End UE shall construct a direct discovery set that contains two End UE discovery infos. Each End UE discovery info is protected using the discovery security materials associated with the 5G ProSe Direct Discovery service as specified in
clause 6.1.3.2.3. The first protected End UE discovery info shall include the application layer ID of the discoveree 5G ProSe End UE, the UTC-based counter LSB parameter, and a MIC IE. The second protected End UE discovery info shall include the application layer ID of the discoverer 5G ProSe End UE, the UTC-based counter LSB parameter, and a MIC IE. Then, the discoveree 5G ProSe End UE shall include the direct discovery set in the UE-to-UE Relay Discovery Response message and protect the UE-to-UE Relay Discovery Response message using the discovery security materials associated with the RSC as specified in
clause 6.1.3.2.3. The discoveree 5G ProSe End UE replies to the 5G ProSe UE-to-UE Relay with the UE-to-UE Relay Discovery Response message.
Step 4.
On receiving the UE-to-UE Relay Discovery Response message from the discoveree 5G ProSe End UE, the 5G ProSe UE-to-UE Relay shall process the received UE-to-UE Relay Discovery Response message using the discovery security materials associated with the RSC as specified in
clause 6.1.3.2.3.
If the verification is successful, the 5G ProSe UE-to-UE Relay shall modify the UE-to-UE Relay Discovery Response message to include User Info ID of 5G ProSe UE-to-UE Relay.
The UE-to-UE Relay Discovery Response message is protected using the security materials associated with the RSC as specified in
clause 6.1.3.2.3. Then, 5G ProSe UE-to-UE Relay sends the UE-to-UE Relay Discovery Response message to the discoverer 5G ProSe End UE.
On receiving the UE-to-UE Relay Discovery Response message, the discoverer 5G ProSe End UE shall process the UE-to-UE Relay Discovery Response message using the discovery security materials associated with the RSC as specified in
clause 6.1.3.2.3.
If the verification is successful, the discoverer 5G ProSe End UE shall extract the protected direct discovery set from the UE-to-UE Relay Discovery Response message and process the protected End UE discovery infos using the discovery security materials associated with the 5G ProSe Direct Discovery service as specified in
. If the verification of the second End UE discovery info is successful and the application layer ID of the discoverer matches, the discoverer 5G ProSe End UE processes the first End UE discovery info.