csec_state_t Struct Reference

Internal driver state information. More...

#include <platform/drivers/inc/csec_driver.h>

Data Fields

bool cmdInProgress
 
csec_cmd_t cmd
 
const uint8_t * inputBuff
 
uint8_t * outputBuff
 
uint32_t index
 
uint32_t fullSize
 
uint32_t partSize
 
csec_key_id_t keyId
 
status_t errCode
 
const uint8_t * iv
 
csec_call_sequence_t seq
 
uint32_t msgLen
 
bool * verifStatus
 
bool macWritten
 
const uint8_t * mac
 
uint32_t macLen
 
security_callback_t callback
 
void * callbackParam
 

Detailed Description

Internal driver state information.

Note
The contents of this structure are internal to the driver and should not be modified by users. Also, contents of the structure are subject to change in future releases.

Implements : csec_state_t_Class

Definition at line 186 of file csec_driver.h.

Field Documentation

The callback invoked when an asynchronous command is completed

Definition at line 203 of file csec_driver.h.

void* callbackParam

User parameter for the command completion callback

Definition at line 204 of file csec_driver.h.

Specifies the type of the command in execution

Definition at line 188 of file csec_driver.h.

bool cmdInProgress

Specifies if a command is in progress

Definition at line 187 of file csec_driver.h.

status_t errCode

Specifies the error code of the last executed command

Definition at line 195 of file csec_driver.h.

uint32_t fullSize

Specifies the size of the input of the command in execution

Definition at line 192 of file csec_driver.h.

uint32_t index

Specifies the index in the input buffer of the command in execution

Definition at line 191 of file csec_driver.h.

const uint8_t* inputBuff

Specifies the input of the command in execution

Definition at line 189 of file csec_driver.h.

const uint8_t* iv

Specifies the IV of the command in execution (for encryption/decryption using CBC mode)

Definition at line 196 of file csec_driver.h.

Specifies the key used for the command in execution

Definition at line 194 of file csec_driver.h.

const uint8_t* mac

Specifies the MAC to be verified for a MAC verification command

Definition at line 201 of file csec_driver.h.

uint32_t macLen

Specifies the number of bits of the MAC to be verified for a MAC verification command

Definition at line 202 of file csec_driver.h.

bool macWritten

Specifies if the MAC to be verified was written in CSE_PRAM for a MAC verification command

Definition at line 200 of file csec_driver.h.

uint32_t msgLen

Specifies the message size (in bits) for the command in execution (for MAC generation/verification)

Definition at line 198 of file csec_driver.h.

uint8_t* outputBuff

Specifies the output of the command in execution

Definition at line 190 of file csec_driver.h.

uint32_t partSize

Specifies the size of the chunck of the input currently processed

Definition at line 193 of file csec_driver.h.

Specifies if the information is the first or a following function call.

Definition at line 197 of file csec_driver.h.

bool* verifStatus

Specifies the result of the last executed MAC verification command

Definition at line 199 of file csec_driver.h.


The documentation for this struct was generated from the following file: