I am not sure I understand the behavior of the following snippet of code
from pycrate_mobile.NAS import *
from pycrate_mobile import *
val = {'CipherKeyData': ({ 'ValidityDuration': 16459},) }
msg = EMMAttachAccept(val=val)
# CipherKeyData fields are correctly presented
show(msg)
decoded_msg, err = parse_NASLTE_MT(msg.to_bytes())
# Decoding of the CipherKeyData field failed
if err != 0:
print('Decoding error')
print(err)
# CipherKeyData fields are not shown correctly anymore
show(decoded_msg)
# But this still holds
assert Msg.to_bytes() == msg.to_bytes()
I try to set the values in the CipherKeyData field but encountered this parsing error when I tried to decode the encoding of the message I just created.
The assertion still holds so I think this is not a big problem in terms of the generated data.
I tried looking into how the CipherKeyData is handled but couldn't figure what the issue was.
Hello,
I am not sure I understand the behavior of the following snippet of code
I try to set the values in the CipherKeyData field but encountered this parsing error when I tried to decode the encoding of the message I just created.
The assertion still holds so I think this is not a big problem in terms of the generated data. I tried looking into how the CipherKeyData is handled but couldn't figure what the issue was.
Thanks in advance.