36 #define SEC_CMAC_KEY_LEN 16 39 #define SEC_CMAC_HASH_LEN 16 42 #define SEC_ECC_KEY_LEN 32 45 #define SEC_TOKEN_INVALID 0xFF secEccSharedSec_t sharedSecret
shared secret
ECC Security callback parameters structure.
void SecAesInit(void)
Initialize the AES service. This function should only be called once upon system initialization.
uint8_t SecAes(uint8_t *pKey, uint8_t *pPlaintext, wsfHandlerId_t handlerId, uint16_t param, uint8_t event)
Execute an AES calculation. When the calculation completes, a WSF message will be sent to the specifi...
void SecRand(uint8_t *pRand, uint8_t randLen)
This function returns up to 16 bytes of random data to a buffer provided by the client.
uint8_t bool_t
Boolean data type.
bool_t SecCmac(const uint8_t *pKey, uint8_t *pPlaintext, uint8_t textLen, wsfHandlerId_t handlerId, uint16_t param, uint8_t event)
Execute the CMAC algorithm.
void SecRandInit(void)
Initialize the random number service. This function should only be called once upon system initializa...
void SecInit(void)
Initialize the security service. This function should only be called once upon system initialization...
void SecCmacInit(void)
Called to initialize CMAC security. This function should only be called once upon system initializati...
void SecEccInit(void)
Called to initialize ECC security. This function should only be called once upon system initializatio...
bool_t SecEccGenKey(wsfHandlerId_t handlerId, uint16_t param, uint8_t event)
Generate an ECC key.
ECC security DH Key shared secret.
ECC Security public/private key pair.
Platform-independent data types.
bool_t SecEccGenSharedSecret(secEccKey_t *pKey, wsfHandlerId_t handlerId, uint16_t param, uint8_t event)
Generate an ECC key.
uint8_t wsfHandlerId_t
Event handler ID data type.
uint8_t * pCiphertext
pointer to 16 bytes of ciphertext data
AES Security callback parameters structure.
#define SEC_ECC_KEY_LEN
ECC algorithm key length.
unsigned short uint16_t
Unsigned 16-bit value.
Common message structure passed to event handler.
secMsg_t secAes_t
AES Security callback are the same as secMsg_t.
unsigned char uint8_t
Unsigned 8-bit value.
secEccKey_t key
ECC public/private key pair.
secMsg_t secCmacMsg_t
CMAC Security callback are the same as secMsg_t.