|
LoRaMAC
4.6.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"
56 #define USE_LRWAN_1_1_X_CRYPTO 1
61 #define USE_RANDOM_DEV_NONCE 0
70 #define USE_10X_JOIN_NONCE_COUNTER_CHECK 0
75 #define FCNT_DOWN_INITAL_VALUE 0xFFFFFFFF
80 typedef enum eLoRaMacCryptoStatus
339 #endif // __LORAMAC_CRYPTO_H__
Definition: LoRaMacCrypto.h:149
Definition: LoRaMacMessageTypes.h:125
Definition: LoRaMacCrypto.h:121
Definition: LoRaMacCrypto.h:129
LoRaMacCryptoStatus_t LoRaMacCryptoSetKey(KeyIdentifier_t keyID, uint8_t *key)
Definition: LoRaMacCrypto.h:85
Definition: LoRaMacCrypto.h:93
Definition: LoRaMacCrypto.h:89
Definition: LoRaMacCrypto.h:137
LoRa MAC layer internal types definition. Please do not include in application sources.
Definition: LoRaMacCrypto.h:117
JoinReqIdentifier_t
Definition: LoRaMacTypes.h:951
void(* LoRaMacCryptoNvmEvent)(void)
Definition: LoRaMacCrypto.h:166
LoRaMacCryptoStatus_t LoRaMacCryptoSetMulticastReference(MulticastCtx_t *multicastList)
Definition: LoRaMacCrypto.h:157
Definition: LoRaMacCrypto.h:109
LoRaMacCryptoStatus_t LoRaMacCryptoGetFCntUp(uint32_t *currentUp)
LoRa MAC layer message type definitions.
Definition: LoRaMacCrypto.h:101
LoRa MAC layer cryptographic NVM data.
Definition: LoRaMacCrypto.h:145
Definition: LoRaMacCrypto.h:133
Definition: LoRaMacCrypto.h:125
Definition: LoRaMacCrypto.h:97
Definition: LoRaMacCrypto.h:153
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)
Definition: LoRaMacCryptoNvm.h:84
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:113
FCntIdentifier_t
Definition: LoRaMacTypes.h:630
KeyIdentifier_t
Definition: LoRaMacTypes.h:680
Definition: LoRaMacCrypto.h:105
LoRaMacCryptoStatus_t LoRaMacCryptoDeriveMcKEKey(KeyIdentifier_t keyID)
LoRaMacCryptoStatus_t
Definition: LoRaMacCrypto.h:80
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:141
LoRaMacCryptoStatus_t LoRaMacCryptoUnsecureMessage(AddressIdentifier_t addrID, uint32_t address, FCntIdentifier_t fCntID, uint32_t fCntDown, LoRaMacMessageData_t *macMsg)
Definition: LoRaMacMessageTypes.h:164