CryptoAuthLib
Microchip CryptoAuthentication Library
atca_temp_key Struct Reference

Structure to hold TempKey fields. More...

#include <atca_host.h>

Data Fields

uint8_t value [ATCA_KEY_SIZE *2]
 Value of TempKey (64 bytes for ATECC608A only) More...
 
unsigned key_id: 4
 If TempKey was derived from a slot or transport key (GenDig or GenKey), that key ID is saved here. More...
 
unsigned source_flag: 1
 Indicates id TempKey started from a random nonce (0) or not (1). More...
 
unsigned gen_dig_data: 1
 TempKey was derived from the GenDig command. More...
 
unsigned gen_key_data: 1
 TempKey was derived from the GenKey command (ATECC devices only). More...
 
unsigned no_mac_flag: 1
 TempKey was derived from a key that has the NoMac bit set preventing the use of the MAC command. Known as CheckFlag in ATSHA devices). More...
 
unsigned valid: 1
 TempKey is valid. More...
 
uint8_t is_64
 TempKey has 64 bytes of valid data. More...
 

Detailed Description

Structure to hold TempKey fields.

Field Documentation

◆ gen_dig_data

unsigned gen_dig_data

TempKey was derived from the GenDig command.

◆ gen_key_data

unsigned gen_key_data

TempKey was derived from the GenKey command (ATECC devices only).

◆ is_64

uint8_t is_64

TempKey has 64 bytes of valid data.

◆ key_id

unsigned key_id

If TempKey was derived from a slot or transport key (GenDig or GenKey), that key ID is saved here.

◆ no_mac_flag

unsigned no_mac_flag

TempKey was derived from a key that has the NoMac bit set preventing the use of the MAC command. Known as CheckFlag in ATSHA devices).

◆ source_flag

unsigned source_flag

Indicates id TempKey started from a random nonce (0) or not (1).

◆ valid

unsigned valid

TempKey is valid.

◆ value

uint8_t value[ATCA_KEY_SIZE *2]

Value of TempKey (64 bytes for ATECC608A only)