DLMS security library

The DLMS security library is a dll that implements the AES-GCM-128 algorithm needed for the DLMS symmetric (keys) security suite. The library essentially exports three routines:

  • Cipher to transform a plain DLMS APDU into a ciphered-frame
  • Decipher for the inverse transformation
  • MakeWrappedKey to wrap a 16 octets key using a master key, according to RFC 3394. A wrapped key is needed when the method

The Cipher/Decipher processes are described in more detail in the Security in COSEM page.

A step by step C++ demo project is available. The demo project also includes the library API documentation.