 |
LoRaMAC
4.7.0
Documentation of the API
|
Go to the documentation of this file.
37 #ifndef __LORAMAC_CRYPTO_H__
38 #define __LORAMAC_CRYPTO_H__
48 #include "utilities.h"
51 #include "LoRaMacCryptoNvm.h"
56 #ifndef USE_LRWAN_1_1_X_CRYPTO
57 #define USE_LRWAN_1_1_X_CRYPTO 1
63 #define USE_RANDOM_DEV_NONCE 0
72 #define USE_10X_JOIN_NONCE_COUNTER_CHECK 0
77 #define FCNT_DOWN_INITIAL_VALUE 0xFFFFFFFF
82 typedef enum eLoRaMacCryptoStatus
341 #endif // __LORAMAC_CRYPTO_H__
Definition: LoRaMacCrypto.h:151
Definition: LoRaMacMessageTypes.h:125
Definition: LoRaMacCrypto.h:123
Definition: LoRaMacCrypto.h:131
LoRaMacCryptoStatus_t LoRaMacCryptoSetKey(KeyIdentifier_t keyID, uint8_t *key)
Definition: LoRaMacCrypto.h:87
Definition: LoRaMacCrypto.h:95
Definition: LoRaMacCrypto.h:91
Definition: LoRaMacCrypto.h:139
LoRa MAC layer internal types definition. Please do not include in application sources.
Definition: LoRaMacCrypto.h:119
JoinReqIdentifier_t
Definition: LoRaMacTypes.h:951
void(* LoRaMacCryptoNvmEvent)(void)
Definition: LoRaMacCrypto.h:168
LoRaMacCryptoStatus_t LoRaMacCryptoSetMulticastReference(MulticastCtx_t *multicastList)
Definition: LoRaMacCrypto.h:159
Definition: LoRaMacCrypto.h:111
LoRaMacCryptoStatus_t LoRaMacCryptoGetFCntUp(uint32_t *currentUp)
LoRa MAC layer message type definitions.
Definition: LoRaMacCrypto.h:103
Definition: LoRaMacCrypto.h:147
Definition: LoRaMacCrypto.h:135
Definition: LoRaMacCrypto.h:127
Definition: LoRaMacCrypto.h:99
Definition: LoRaMacCrypto.h:155
Definition: LoRaMacTypes.h:912
Definition: LoRaMacMessageTypes.h:86
LoRaMacCryptoStatus_t LoRaMacCryptoSecureMessage(uint32_t fCntUp, uint8_t txDr, uint8_t txCh, LoRaMacMessageData_t *macMsg)
LoRaMacCryptoStatus_t LoRaMacCryptoPrepareJoinRequest(LoRaMacMessageJoinRequest_t *macMsg)
LoRaMacCryptoStatus_t LoRaMacCryptoDeriveMcRootKey(uint8_t versionMinor, KeyIdentifier_t keyID)
LoRaMacCryptoStatus_t LoRaMacCryptoGetRJcount(FCntIdentifier_t fCntID, uint16_t *rJcount)
LoRaMacCryptoStatus_t LoRaMacCryptoDeriveMcSessionKeyPair(AddressIdentifier_t addrID, uint32_t mcAddr)
LoRaMacCryptoStatus_t LoRaMacCryptoHandleJoinAccept(JoinReqIdentifier_t joinReqType, uint8_t *joinEUI, LoRaMacMessageJoinAccept_t *macMsg)
AddressIdentifier_t
Definition: LoRaMacTypes.h:783
Definition: LoRaMacMessageTypes.h:51
Definition: LoRaMacMessageTypes.h:213
Definition: LoRaMacCrypto.h:115
FCntIdentifier_t
Definition: LoRaMacTypes.h:630
KeyIdentifier_t
Definition: LoRaMacTypes.h:680
Definition: LoRaMacCrypto.h:107
LoRaMacCryptoStatus_t LoRaMacCryptoDeriveMcKEKey(KeyIdentifier_t keyID)
LoRaMacCryptoStatus_t
Definition: LoRaMacCrypto.h:82
LoRaMacCryptoStatus_t LoRaMacCryptoPrepareReJoinType1(LoRaMacMessageReJoinType1_t *macMsg)
LoRaMacCryptoStatus_t LoRaMacCryptoSetLrWanVersion(Version_t version)
LoRaMacCryptoStatus_t LoRaMacCryptoGetFCntDown(FCntIdentifier_t fCntID, uint32_t frameFcnt, uint32_t *currentDown)
LoRaMacCryptoStatus_t LoRaMacCryptoPrepareReJoinType0or2(LoRaMacMessageReJoinType0or2_t *macMsg)
LoRaMacCryptoStatus_t LoRaMacCryptoInit(LoRaMacCryptoNvmData_t *nvm)
Definition: LoRaMacCrypto.h:143
LoRaMacCryptoStatus_t LoRaMacCryptoUnsecureMessage(AddressIdentifier_t addrID, uint32_t address, FCntIdentifier_t fCntID, uint32_t fCntDown, LoRaMacMessageData_t *macMsg)
Definition: LoRaMacMessageTypes.h:164