Ejemplo n.º 1
0
        public byte[] GetCipheredData(byte[] data, GXCiphering ciphering)
        {
            return GXDLMSChippering.DecryptAesGcm(data, ciphering.SystemTitle, ciphering.BlockCipherKey, ciphering.AuthenticationKey);

        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public GXDLMS(bool server)
 {
     Priority = Priority.High;
     InvokeID = 1;
     Ciphering = new GXCiphering(ASCIIEncoding.ASCII.GetBytes("ABCDEFGH"));
     Server = server;
     UseCache = true;
     this.InterfaceType = InterfaceType.General;
     DLMSVersion = 6;
     this.MaxReceivePDUSize = 0xFFFF;
     ClearProgress();
     GenerateFrame = true;
     Limits = new GXDLMSLimits();
     GetObjectTypes();
 }