CryptoAuthLib
Microchip CryptoAuthentication Library
atca_check_mac_in_out Struct Reference

Input/output parameters for function atcah_check_mac(). More...

#include <atca_host.h>

Data Fields

uint8_t mode
 [in] CheckMac command Mode More...
 
uint16_t key_id
 [in] CheckMac command KeyID More...
 
const uint8_t * sn
 [in] Device serial number SN[0:8]. Only SN[0:1] and SN[8] are required though. More...
 
const uint8_t * client_chal
 [in] ClientChal data, 32 bytes. Can be NULL if mode[0] is 1. More...
 
uint8_t * client_resp
 [out] Calculated ClientResp will be returned here. More...
 
const uint8_t * other_data
 [in] OtherData, 13 bytes More...
 
const uint8_t * otp
 [in] First 8 bytes of the OTP zone data. Can be NULL is mode[5] is 0. More...
 
const uint8_t * slot_key
 
const uint8_t * target_key
 
struct atca_temp_keytemp_key
 [in,out] Current state of TempKey. Required if mode[0] or mode[1] are 1. More...
 

Detailed Description

Input/output parameters for function atcah_check_mac().

Field Documentation

◆ client_chal

const uint8_t* client_chal

[in] ClientChal data, 32 bytes. Can be NULL if mode[0] is 1.

◆ client_resp

uint8_t* client_resp

[out] Calculated ClientResp will be returned here.

◆ key_id

uint16_t key_id

[in] CheckMac command KeyID

◆ mode

uint8_t mode

[in] CheckMac command Mode

◆ other_data

const uint8_t* other_data

[in] OtherData, 13 bytes

◆ otp

const uint8_t* otp

[in] First 8 bytes of the OTP zone data. Can be NULL is mode[5] is 0.

◆ slot_key

const uint8_t* slot_key

[in] 32 byte key value in the slot specified by slot_id. Can be NULL if mode[1] is 1.

◆ sn

const uint8_t* sn

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

◆ target_key

const uint8_t* target_key

[in] If this is not NULL, it assumes CheckMac copy is enabled for the specified key_id (ReadKey=0). If key_id is even, this should be the 32-byte key value for the slot key_id+1, otherwise this should be set to slot_key.

◆ temp_key

struct atca_temp_key* temp_key

[in,out] Current state of TempKey. Required if mode[0] or mode[1] are 1.