public byte[] GetCipheredData(byte[] data, GXCiphering ciphering) { return GXDLMSChippering.DecryptAesGcm(data, ciphering.SystemTitle, ciphering.BlockCipherKey, ciphering.AuthenticationKey); }
/// <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(); }