Microchip® Advanced Software Framework

atca_write_mac_in_out Struct Reference

Input/output parameters for function atcah_write_auth_mac() and atcah_privwrite_auth_mac().

#include <atca_host.h>

Data Fields

uint8_t * auth_mac
 Write MAC will be returned here. 32 bytes. More...
 
uint8_t * encrypted_data
 Encrypted version of input_data will be returned here. 32 bytes for Write command, 36 bytes for PrivWrite command. More...
 
const uint8_t * input_data
 Data to be encrypted. 32 bytes for Write command, 36 bytes for PrivWrite command. More...
 
uint16_t key_id
 KeyID/Param2 for the Write or PrivWrite command. More...
 
const uint8_t * sn
 Device serial number SN[0:8]. Only SN[0:1] and SN[8] are required though. More...
 
struct atca_temp_keytemp_key
 Current state of TempKey. More...
 
uint8_t zone
 Zone/Param1 for the Write or PrivWrite command. More...
 

uint8_t* atca_write_mac_in_out::auth_mac

Write MAC will be returned here. 32 bytes.

Referenced by atcah_privwrite_auth_mac(), and atcah_write_auth_mac().

uint8_t* atca_write_mac_in_out::encrypted_data

Encrypted version of input_data will be returned here. 32 bytes for Write command, 36 bytes for PrivWrite command.

Referenced by atcah_privwrite_auth_mac(), and atcah_write_auth_mac().

const uint8_t* atca_write_mac_in_out::input_data

Data to be encrypted. 32 bytes for Write command, 36 bytes for PrivWrite command.

Referenced by atcah_privwrite_auth_mac(), and atcah_write_auth_mac().

uint16_t atca_write_mac_in_out::key_id

KeyID/Param2 for the Write or PrivWrite command.

Referenced by atcah_privwrite_auth_mac(), and atcah_write_auth_mac().

const uint8_t* atca_write_mac_in_out::sn

Device serial number SN[0:8]. Only SN[0:1] and SN[8] are required though.

Referenced by atcah_privwrite_auth_mac(), and atcah_write_auth_mac().

struct atca_temp_key* atca_write_mac_in_out::temp_key

Current state of TempKey.

Referenced by atcah_privwrite_auth_mac(), and atcah_write_auth_mac().

uint8_t atca_write_mac_in_out::zone

Zone/Param1 for the Write or PrivWrite command.

Referenced by atcah_privwrite_auth_mac(), and atcah_write_auth_mac().