Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mac/LoRaMacCrypto.cpp
- Revision:
- 1:2be292bd43f9
- Parent:
- 0:c58229885f95
diff -r c58229885f95 -r 2be292bd43f9 mac/LoRaMacCrypto.cpp
--- a/mac/LoRaMacCrypto.cpp Wed Dec 16 14:25:16 2015 +0000
+++ b/mac/LoRaMacCrypto.cpp Tue Mar 15 23:27:24 2016 +0000
@@ -5,9 +5,14 @@
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
+ ___ _____ _ ___ _ _____ ___ ___ ___ ___
+/ __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
+\__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
+|___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
+embedded.connectivity.solutions===============
Description: LoRa MAC layer implementation
License: Revised BSD License, see LICENSE.TXT file include in the project
-Maintainer: Miguel Luis and Gregory Cristian
+Maintainer: Miguel Luis ( Semtech ), Gregory Cristian ( Semtech ) and Daniel Jäckle ( STACKFORCE )
*/
#include <stdlib.h>
#include <stdint.h>
@@ -182,13 +187,13 @@
memset1( nonce, 0, sizeof( nonce ) );
nonce[0] = 0x01;
- LoRaMacMemCpy( appNonce, nonce + 1, 6 );
- LoRaMacMemCpy( pDevNonce, nonce + 7, 2 );
+ memcpy1( nonce + 1, appNonce, 6 );
+ memcpy1( nonce + 7, pDevNonce, 2 );
aes_encrypt( nonce, nwkSKey, &AesContext );
memset1( nonce, 0, sizeof( nonce ) );
nonce[0] = 0x02;
- LoRaMacMemCpy( appNonce, nonce + 1, 6 );
- LoRaMacMemCpy( pDevNonce, nonce + 7, 2 );
+ memcpy1( nonce + 1, appNonce, 6 );
+ memcpy1( nonce + 7, pDevNonce, 2 );
aes_encrypt( nonce, appSKey, &AesContext );
}
\ No newline at end of file