Hello everyone,
I was testing the high security authentication with the gurux java libraries and found a possible bug in the reply_to_hls function.
In particular, i can correctly get/set/encrypt the StoC and CtoS with the encryption key, though, when the server replies back to the reply_to_hls in the buffer the "return-parameters" field doesn't set the "data" field, thus leading to an error in the received message.
This is the reply I get
c7 01 81 00 01 09 10 a8 e6 14 a7 c6 dd 36 55 2b 6e 1c de 72 be fd 2c
This is the reply I was expecting:
c7 01 81 00 01 00 09 10 a8 e6 14 a7 c6 dd 36 55 2b 6e 1c de 72 be fd 2c
c7 01 81 = action response normal + ID + priority
00 = success
01 00 = return-parameters is present and of type data
09 10 ... = octect string of length 16 bytes
You can check the DLMS UA for reference here