Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Testing Keytransfer Action From IC 64 (Method 2)

Testing keytransfer Action from IC 64 (Method 2)

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By MiguelLuna , 4 March, 2020
Forums
Gurux.Net

Hi, I'm trying to simulate key_transfer method (2) from IC 64

Inside the GXDLMSSecuritySetups.cs class,
when action is invoked settings.Cypher is being modified with new keys as you can see
line 430 in GXDLMSSecuritySetup ->
"settings.Cipher.BlockCipherKey = GXDLMSSecureClient.Decrypt(settings.Kek, data);"

those settings (with new keys) are being used to cypher the response, this is strange since if we take a look to DLMS blue book (attached image), the book says "The new keys are activated immediately after result of the method invocation is sent back with result = success. Notice that this rule equally applies to all keys, including the master key."

The new keys have to be applied only AFTER the response is sent, I mean, we understand that the response still has to be cyphered with old keys.

How is working:
System -> cyphered action request (old keys) -> gurux meter execute action -> cyphered action response (new keys) -> System

How I understand it should work accordingly to blue book:
System -> cypher action request (old keys) -> gurux meter execute action -> cyphered action response (old keys) -> System

Is this considered somehow for future releases? Am I understanding this in the wrong way?

Thanks in advance and best regards,
Miguel

Image
Profile picture for user Kurumi

Kurumi

6 years 3 months ago

Hi Miguel,

Hi Miguel,

You are right on this. The keys are updated right away. I have tried to think of how this can be solved.
At the moment the main problem is how it can be a clean and nice solution.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

6 years 3 months ago

Hi,

Hi,

This is fixed. Get the latest version.
http://gurux.fi/node/15075
BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin