aboutsummaryrefslogtreecommitdiffstats
path: root/mme/LTE_CryptoFunctions.ttcn
AgeCommit message (Collapse)AuthorFilesLines
2024-08-21S1AP_Emulation: Fix building security headers for Integrity and CipheringPau Espin Pedrol1-15/+13
The fact that the network instructs the UE to use EEA0 encryption (null algo) doesn't mean the UE should mark the NAS frames in the security header as non-ciphered. They need to be marked as IP+ciphered in the outer header, and as plain in the inner one. Now TTCN3 behaves like a UE recorded while executing a similar test case. Moreover, wireshark is now happy decoding the messages. Change-Id: Ifd4fe83e7b5aefdaafe7ce1c8b1ec6a67c65819c
2024-08-21S1AP_Emulation: Fix new_ctx never set when building security headerPau Espin Pedrol1-5/+11
The flag was never set to true. It needs to be set to true when building the security head of Security Mode Complete after receiving Security Mode Command with a new EPS security context. TS 24.301 5.4.3.3 Change-Id: I76ad46f7ee5f49698e41da729cb6422866202951
2024-01-15mme: Add code to derive NAS token from NAS ul_countPau Espin Pedrol1-0/+2
NAS Token is derived from kasme and NAS ul_count as specified in 3GPP TS 33.401 A.9, and its LSB 16 bits passed to the network when mapping the GUTI to RAI+PTMSI+PTIMSI_SIG. Take the chance to move guti2rai_ptmsi() up to before the place it is used. Change-Id: I5e6003a2fe3e74cc93cfe4a288e6c114aa288d0b
2024-01-08LTE_CryptoFunctions: Fix rx_count incrementPau Espin Pedrol1-2/+4
The previous logic was wrong, since it was increasing the rx_count at the time where the msg is received and before checking it. Instead, it should be increased after having validated and accepted it. This fixes the case where rx_count will have to be reset (to zero) when doing mobility GERAN->EUTRAN. Change-Id: I712d95f7784a6a9855fe36300b0ebfcd4c6ef377
2023-12-15LTE_CryptoFunctions.ttcn: Increment nus.rx_count on each pkt readPau Espin Pedrol1-0/+8
Before this patch, the rx_count field was never set to anything other than zero. There's still a problem with counter not being incremented when a S1AP_IntialCtxSetupReq message containing a NAS_PDU is received. This will be fixed ina follow-up patch. Change-Id: I1ee25fd8fde6fbce95444ee4b73918ce1f61b427
2023-12-15LTE_CryptoFunctions.ttcn: Log NAS_UE_State on failurePau Espin Pedrol1-1/+1
Change-Id: Ib95d496f06f07f4c28d9b08b6a8059d8453e8acd
2023-12-15LTE_CryptoFunctions.ttcn: Immediate termination upon failurePau Espin Pedrol1-12/+12
Change-Id: I09170c17c5cbb552a8aeef31b4b8fa5c89a00887
2019-08-18TTCN-3 native function wrapper for SNOW-3GHarald Welte1-0/+263
Change-Id: I7fca69ea8b4aed48d5a64885b762ab85be71ef03