|
LoRaMAC
4.4.5
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"
55 #define USE_LRWAN_1_1_X_CRYPTO 0
60 #define USE_RANDOM_DEV_NONCE 1
65 #define USE_JOIN_NONCE_COUNTER_CHECK 0
70 #define FCNT_DOWN_INITAL_VALUE 0xFFFFFFFF
75 typedef enum eLoRaMacCryptoStatus
345 #endif // __LORAMAC_CRYPTO_H__
Definition: LoRaMacCrypto.h:148
Definition: LoRaMacMessageTypes.h:125
Definition: LoRaMacCrypto.h:120
Definition: LoRaMacCrypto.h:128
LoRaMacCryptoStatus_t LoRaMacCryptoSetKey(KeyIdentifier_t keyID, uint8_t *key)
Definition: LoRaMacCrypto.h:80
Definition: LoRaMacCrypto.h:112
Definition: LoRaMacCrypto.h:88
Definition: LoRaMacCrypto.h:84
Definition: LoRaMacCrypto.h:136
LoRa MAC layer internal types definition. Please do not include in application sources.
Definition: LoRaMacCrypto.h:116
JoinReqIdentifier_t
Definition: LoRaMacTypes.h:433
void(* LoRaMacCryptoNvmEvent)(void)
Definition: LoRaMacCrypto.h:165
LoRaMacCryptoStatus_t LoRaMacCryptoSetMulticastReference(MulticastCtx_t *multicastList)
Definition: LoRaMacCrypto.h:156
Definition: LoRaMacCrypto.h:104
LoRaMacCryptoStatus_t LoRaMacCryptoGetFCntUp(uint32_t *currentUp)
LoRa MAC layer message type definitions.
Definition: LoRaMacCrypto.h:96
Definition: LoRaMacCrypto.h:144
Definition: LoRaMacCrypto.h:132
Definition: LoRaMacCrypto.h:124
Definition: LoRaMacCrypto.h:92
void * LoRaMacCryptoGetNvmCtx(size_t *cryptoNvmCtxSize)
Definition: LoRaMacCrypto.h:152
Definition: LoRaMacTypes.h:398
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 LoRaMacCryptoDeriveMcSessionKeyPair(AddressIdentifier_t addrID, uint32_t mcAddr)
LoRaMacCryptoStatus_t LoRaMacCryptoHandleJoinAccept(JoinReqIdentifier_t joinReqType, uint8_t *joinEUI, LoRaMacMessageJoinAccept_t *macMsg)
AddressIdentifier_t
Definition: LoRaMacTypes.h:272
Definition: LoRaMacMessageTypes.h:51
LoRaMacCryptoStatus_t LoRaMacCryptoInit(LoRaMacCryptoNvmEvent cryptoNvmCtxChanged)
Definition: LoRaMacMessageTypes.h:213
Definition: LoRaMacCrypto.h:108
FCntIdentifier_t
Definition: LoRaMacTypes.h:127
KeyIdentifier_t
Definition: LoRaMacTypes.h:169
LoRaMacCryptoStatus_t LoRaMacCryptoGetFCntDown(FCntIdentifier_t fCntID, uint16_t maxFCntGap, uint32_t frameFcnt, uint32_t *currentDown)
Definition: LoRaMacCrypto.h:100
LoRaMacCryptoStatus_t LoRaMacCryptoDeriveMcKEKey(KeyIdentifier_t keyID)
LoRaMacCryptoStatus_t
Definition: LoRaMacCrypto.h:75
LoRaMacCryptoStatus_t LoRaMacCryptoRestoreNvmCtx(void *cryptoNvmCtx)
LoRaMacCryptoStatus_t LoRaMacCryptoPrepareReJoinType1(LoRaMacMessageReJoinType1_t *macMsg)
LoRaMacCryptoStatus_t LoRaMacCryptoSetLrWanVersion(Version_t version)
LoRaMacCryptoStatus_t LoRaMacCryptoPrepareReJoinType0or2(LoRaMacMessageReJoinType0or2_t *macMsg)
Definition: LoRaMacCrypto.h:140
LoRaMacCryptoStatus_t LoRaMacCryptoUnsecureMessage(AddressIdentifier_t addrID, uint32_t address, FCntIdentifier_t fCntID, uint32_t fCntDown, LoRaMacMessageData_t *macMsg)
Definition: LoRaMacMessageTypes.h:164