CryptoAuthLib
Microchip CryptoAuthentication Library
atca_derive_key_in_out Struct Reference

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

#include <atca_host.h>

Data Fields

uint8_t mode
 Mode (param 1) of the derive key command. More...
 
uint16_t target_key_id
 Key ID (param 2) of the target slot to run the command on. More...
 
const uint8_t * sn
 Device serial number SN[0:8]. Only SN[0:1] and SN[8] are required though. More...
 
const uint8_t * parent_key
 Parent key to be used in the derive key calculation (32 bytes). More...
 
uint8_t * target_key
 Derived key will be returned here (32 bytes). More...
 
struct atca_temp_keytemp_key
 Current state of TempKey. More...
 

Detailed Description

Input/output parameters for function atcah_derive_key().

Field Documentation

◆ mode

uint8_t mode

Mode (param 1) of the derive key command.

◆ parent_key

const uint8_t* parent_key

Parent key to be used in the derive key calculation (32 bytes).

◆ sn

const uint8_t* sn

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

◆ target_key

uint8_t* target_key

Derived key will be returned here (32 bytes).

◆ target_key_id

uint16_t target_key_id

Key ID (param 2) of the target slot to run the command on.

◆ temp_key

struct atca_temp_key* temp_key

Current state of TempKey.