CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
atca_check_mac_in_out Struct Reference

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

#include <lib/host/atca_host.h>

Data Fields

uint8_t mode
 [in] CheckMac command Mode
 
uint16_t key_id
 [in] CheckMac command KeyID
 
const uint8_t * sn
 [in] Device serial number SN[0:8]. Only SN[0:1] and SN[8] are required though.
 
const uint8_t * client_chal
 [in] ClientChal data, 32 bytes. Can be NULL if mode[0] is 1.
 
uint8_t * client_resp
 [out] Calculated ClientResp will be returned here.
 
const uint8_t * other_data
 [in] OtherData, 13 bytes
 
const uint8_t * otp
 [in] First 8 bytes of the OTP zone data. Can be NULL is mode[5] is 0.
 
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.
 

Detailed Description

Input/output parameters for function atcah_check_mac().

Field Documentation

◆ slot_key

const uint8_t* atca_check_mac_in_out::slot_key

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

◆ target_key

const uint8_t* atca_check_mac_in_out::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.