|
LoRaMAC
4.4.5
Documentation of the API
|
Go to the documentation of this file.
38 #ifndef __SECURE_ELEMENT_H__
39 #define __SECURE_ELEMENT_H__
52 #define SE_KEY_SIZE 16
67 typedef enum eSecureElementStatus
200 uint16_t devNonce, uint8_t* encJoinAccept,
201 uint8_t encJoinAcceptSize, uint8_t* decJoinAccept,
202 uint8_t* versionMinor );
263 #endif // __SECURE_ELEMENT_H__
Definition: secure-element.h:92
SecureElementStatus_t SecureElementDeriveAndStoreKey(uint8_t *input, KeyIdentifier_t rootKeyID, KeyIdentifier_t targetKeyID)
Definition: secure-element.h:96
SecureElementStatus_t SecureElementRestoreNvmCtx(void *seNvmCtx)
SecureElementStatus_t SecureElementAesEncrypt(uint8_t *buffer, uint16_t size, KeyIdentifier_t keyID, uint8_t *encBuffer)
Definition: secure-element.h:80
SecureElementStatus_t SecureElementInit(SecureElementNvmEvent seNvmCtxChanged)
void(* SecureElementNvmEvent)(void)
Definition: secure-element.h:108
Definition: secure-element.h:88
JoinReqIdentifier_t
Definition: LoRaMacTypes.h:433
SecureElementStatus_t
Definition: secure-element.h:67
Definition: secure-element.h:100
SecureElementStatus_t SecureElementSetJoinEui(uint8_t *joinEui)
SecureElementStatus_t SecureElementRandomNumber(uint32_t *randomNum)
uint8_t * SecureElementGetPin(void)
Definition: secure-element.h:72
LoRa MAC layer cryptographic functionality implementation.
void * SecureElementGetNvmCtx(size_t *seNvmCtxSize)
SecureElementStatus_t SecureElementProcessJoinAccept(JoinReqIdentifier_t joinReqType, uint8_t *joinEui, uint16_t devNonce, uint8_t *encJoinAccept, uint8_t encJoinAcceptSize, uint8_t *decJoinAccept, uint8_t *versionMinor)
Definition: secure-element.h:76
uint8_t * SecureElementGetJoinEui(void)
SecureElementStatus_t SecureElementSetKey(KeyIdentifier_t keyID, uint8_t *key)
SecureElementStatus_t SecureElementSetDevEui(uint8_t *devEui)
KeyIdentifier_t
Definition: LoRaMacTypes.h:169
uint8_t * SecureElementGetDevEui(void)
SecureElementStatus_t SecureElementComputeAesCmac(uint8_t *micBxBuffer, uint8_t *buffer, uint16_t size, KeyIdentifier_t keyID, uint32_t *cmac)
SecureElementStatus_t SecureElementSetPin(uint8_t *pin)
Definition: secure-element.h:84
SecureElementStatus_t SecureElementVerifyAesCmac(uint8_t *buffer, uint16_t size, uint32_t expectedCmac, KeyIdentifier_t keyID)