Input/output parameters for function atca_mac(). More...
#include <lib/host/atca_host.h>
Data Fields | |
| uint8_t | mode |
| [in] Mode parameter used in MAC command (Param1). | |
| uint16_t | key_id |
| [in] KeyID parameter used in MAC command (Param2). | |
| const uint8_t * | challenge |
| [in] Pointer to 32-byte Challenge data used in MAC command, depending on mode. | |
| const uint8_t * | key |
| [in] Pointer to 32-byte key used to generate MAC digest. | |
| const uint8_t * | otp |
| [in] Pointer to 11-byte OTP, optionally included in MAC digest, depending on mode. | |
| const uint8_t * | sn |
| [in] Pointer to 9-byte SN. Must not be NULL. Specific SN bytes (SN[4:7] and SN[2:3]) are conditionally included in MAC digest depending on MAC_MODE_INCLUDE_SN flag, but SN[8], SN[0:1] are always included. | |
| uint8_t * | response |
| [out] Pointer to 32-byte SHA-256 digest (MAC). | |
| struct atca_temp_key * | temp_key |
| [in,out] Pointer to TempKey structure. | |
Input/output parameters for function atca_mac().