OBJECTIVE: Understand how to construct a DLMS KeK (Key Encryption Key) and Data to be encrypted and decrypted.
SYNOPSIS:
The Gurux.DLMS library features GXDLMSSecureClient component which publishes an Encrypt and Decrypt method.
Each method takes two parameters:
Encrypt(byte[] kek, byte[] data)
Decrypt(byte[] kek, byte[] data)
How is the KeK derived?
We are trying to decrypt the 'additional encrypted message attributes' returned by the smart meter.
I think Attributes marked as encrypted should be decrypted using the KeK. But not sure how the KeK is derived.
Key Encrypting Key
Hi,
KEK is Key Encrypting Key, also known as master key. It's 16 bytes long key that is used when you update keys.
BR,
Mikko
How do I construct the KeK
How is the KeK derived?
We are trying to decrypt the 'additional encrypted message attributes' returned by the smart meter.
I think Attributes marked as encrypted should be decrypted using the KeK. But not sure how the KeK is derived.