Version of personalized IMPACT LoRa

Fork of LMiC-10secs by Alcatel-Lucent IoT Development

Revision:
6:71f4de8e79e0
Parent:
1:d3b7bde3995c
Child:
9:c5820ce68bd6
--- a/aes.cpp	Mon Dec 21 14:19:28 2015 +0000
+++ b/aes.cpp	Fri Jan 08 09:57:53 2016 +0000
@@ -10,6 +10,7 @@
  *******************************************************************************/
 
 #include "oslmic.h"
+#include "debug.h"
 
 #define AES_MICSUB 0x30 // internal use only
 
@@ -334,7 +335,10 @@
                 }
             } else { // CIPHER
                 if( mode & AES_CTR ) { // xor block (partially)
+                
                     t0 = (len > 16) ? 16: len;
+                    debug_str("Payload before XOR:");
+                    debug_buf(buf,len);
                     for(t1=0; t1<t0; t1++) {
                         buf[t1] ^= (a0>>24);
                         a0 <<= 8;