CryptoAuthLib
Microchip CryptoAuthentication Library
atca_sign_internal_in_out Struct Reference

Input/output parameters for calculating the message and digest used by the Sign(internal) command. Used with the atcah_sign_internal_msg() function. More...

#include <atca_host.h>

Data Fields

uint8_t mode
 [in] Sign Mode More...
 
uint16_t key_id
 [in] Sign KeyID More...
 
uint16_t slot_config
 [in] SlotConfig[TempKeyFlags.keyId] More...
 
uint16_t key_config
 [in] KeyConfig[TempKeyFlags.keyId] More...
 
uint8_t use_flag
 [in] UseFlag[TempKeyFlags.keyId], 0x00 for slots 8 and above and for ATECC508A More...
 
uint8_t update_count
 [in] UpdateCount[TempKeyFlags.keyId], 0x00 for slots 8 and above and for ATECC508A More...
 
bool is_slot_locked
 [in] Is TempKeyFlags.keyId slot locked. More...
 
bool for_invalidate
 [in] Set to true if this will be used for the Verify(Invalidate) command. More...
 
const uint8_t * sn
 [in] Device serial number SN[0:8] (9 bytes) More...
 
const struct atca_temp_keytemp_key
 [in] The current state of TempKey. More...
 
uint8_t * message
 [out] Full 55 byte message the Sign(internal) command will build. Can be NULL if not required. More...
 
uint8_t * verify_other_data
 [out] The 19 byte OtherData bytes to be used with the Verify(In/Validate) command. Can be NULL if not required. More...
 
uint8_t * digest
 [out] SHA256 digest of the full 55 byte message. Can be NULL if not required. More...
 

Detailed Description

Input/output parameters for calculating the message and digest used by the Sign(internal) command. Used with the atcah_sign_internal_msg() function.

Field Documentation

◆ digest

uint8_t* digest

[out] SHA256 digest of the full 55 byte message. Can be NULL if not required.

◆ for_invalidate

bool for_invalidate

[in] Set to true if this will be used for the Verify(Invalidate) command.

◆ is_slot_locked

bool is_slot_locked

[in] Is TempKeyFlags.keyId slot locked.

◆ key_config

uint16_t key_config

[in] KeyConfig[TempKeyFlags.keyId]

◆ key_id

uint16_t key_id

[in] Sign KeyID

◆ message

uint8_t* message

[out] Full 55 byte message the Sign(internal) command will build. Can be NULL if not required.

◆ mode

uint8_t mode

[in] Sign Mode

◆ slot_config

uint16_t slot_config

[in] SlotConfig[TempKeyFlags.keyId]

◆ sn

const uint8_t* sn

[in] Device serial number SN[0:8] (9 bytes)

◆ temp_key

const struct atca_temp_key* temp_key

[in] The current state of TempKey.

◆ update_count

uint8_t update_count

[in] UpdateCount[TempKeyFlags.keyId], 0x00 for slots 8 and above and for ATECC508A

◆ use_flag

uint8_t use_flag

[in] UseFlag[TempKeyFlags.keyId], 0x00 for slots 8 and above and for ATECC508A

◆ verify_other_data

uint8_t* verify_other_data

[out] The 19 byte OtherData bytes to be used with the Verify(In/Validate) command. Can be NULL if not required.