示例#1
0
        /// <summary>
        /// Method to decrypt payload to the appropriate implementation.
        /// </summary>
        /// <param name="nwskey">The Application Secret Key</param>
        /// <returns>a boolean telling if the MIC is valid or not</returns>
        public byte[] DecryptPayload(string appSkey)
        {
            var retValue = LoRaPayloadMessage.PerformEncryption(appSkey);

            return(retValue);
        }
示例#2
0
 /// <summary>
 /// Method to map the Mic check to the appropriate implementation.
 /// </summary>
 /// <param name="nwskey">The Neetwork Secret Key</param>
 /// <returns>a boolean telling if the MIC is valid or not</returns>
 public bool CheckMic(string nwskey)
 {
     return(LoRaPayloadMessage.CheckMic(nwskey));
 }