| SX126x-Arduino 2.0.1

LoRaMacCrypto.h
Go to the documentation of this file.
1
36 #ifndef __LORAMAC_CRYPTO_H__
37 #define __LORAMAC_CRYPTO_H__
38
39 extern "C"
40 {
41
53 void LoRaMacComputeMic(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint32_t *mic);
54
66 void LoRaMacPayloadEncrypt(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint8_t *encBuffer);
67
79 void LoRaMacPayloadDecrypt(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint8_t *decBuffer);
80
89 void LoRaMacJoinComputeMic(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t *mic);
90
99 void LoRaMacJoinDecrypt(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint8_t *decBuffer);
100
110 void LoRaMacJoinComputeSKeys(const uint8_t *key, const uint8_t *appNonce, uint16_t devNonce, uint8_t *nwkSKey, uint8_t *appSKey);
111
113 };
114 #endif // __LORAMAC_CRYPTO_H__
LoRaMacJoinComputeMic
void LoRaMacJoinComputeMic(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t *mic)
Definition: LoRaMacCrypto.cpp:147
LoRaMacJoinComputeSKeys
void LoRaMacJoinComputeSKeys(const uint8_t *key, const uint8_t *appNonce, uint16_t devNonce, uint8_t *nwkSKey, uint8_t *appSKey)
Definition: LoRaMacCrypto.cpp:172
LoRaMacComputeMic
void LoRaMacComputeMic(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint32_t *mic)
Definition: LoRaMacCrypto.cpp:68
LoRaMacPayloadEncrypt
void LoRaMacPayloadEncrypt(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint8_t *encBuffer)
Definition: LoRaMacCrypto.cpp:97
LoRaMacPayloadDecrypt
void LoRaMacPayloadDecrypt(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint8_t *decBuffer)
Definition: LoRaMacCrypto.cpp:142
LoRaMacJoinDecrypt
void LoRaMacJoinDecrypt(const uint8_t *buffer, uint16_t size, const uint8_t *key, uint8_t *decBuffer)
Definition: LoRaMacCrypto.cpp:160