Amf/nas/nas_security/security.go "ToDo: use real mac calculate"

Hi,

I’ve been trying to simulate my own UE and gNB as a standalone devices that could connect to a running Free5gc core. I’m currently debugging the integrity algorithm and I’ve come across a curious ToDo in AMF code:

// ToDo: use real mac calculate
mac32, err := NasMacCalculate(ue.IntegrityAlg …)

What exactly do you mean by ‘real mac calculate’? Is the current one a non-standard development version? For example if I try to connect some third party simulator, will the integrity check fail?

Thanks in advance!

Hi,

This TODO is just we did not clean it clear. Sorry about that.

The MAC calculate is correct.