Functions | |
uint8_t | sha204m_check_mac (struct sha204_check_mac_parameters *args) |
This function sends a CheckMAC command to the device and receives its response. More... | |
static uint8_t | sha204m_check_parameters (struct sha204_command_parameters *args) |
This function checks the parameters for sha204m_execute(). More... | |
uint8_t | sha204m_derive_key (struct sha204_derive_key_parameters *args) |
This function sends a DeriveKey command to the device and receives its response. More... | |
uint8_t | sha204m_dev_rev (struct sha204_dev_rev_parameters *args) |
This function sends a DevRev command to the device and receives its response. More... | |
uint8_t | sha204m_execute (struct sha204_command_parameters *args) |
This function creates a command packet, sends it, and receives its response. More... | |
uint8_t | sha204m_gen_dig (struct sha204_gen_dig_parameters *args) |
This function sends a GenDig command to the device and receives its response. More... | |
uint8_t | sha204m_hmac (struct sha204_hmac_parameters *args) |
This function sends an HMAC command to the device and receives its response. More... | |
uint8_t | sha204m_lock (struct sha204_lock_parameters *args) |
This function sends a Lock command to the device and receives its response. More... | |
uint8_t | sha204m_mac (struct sha204_mac_parameters *args) |
This function sends a MAC command to the device and receives its response. More... | |
uint8_t | sha204m_nonce (struct sha204_nonce_parameters *args) |
This function sends a Nonce command to the device and receives its response. More... | |
uint8_t | sha204m_pause (struct sha204_pause_parameters *args) |
This function sends a Pause command to SWI devices and receives a response from the selected device. More... | |
uint8_t | sha204m_random (struct sha204_random_parameters *args) |
This function sends a Random command to the device and receives its response. More... | |
uint8_t | sha204m_read (struct sha204_read_parameters *args) |
This function sends a Read command to the device and receives its response. More... | |
uint8_t | sha204m_update_extra (struct sha204_update_extra_parameters *args) |
This function sends an UpdateExtra command to the device and receives its response. More... | |
uint8_t | sha204m_write (struct sha204_write_parameters *args) |
This function sends a Write command to the device and receives its response. More... | |
|
static |
This function checks the parameters for sha204m_execute().
[in,out] | args | pointer to parameter structure |
References CHECKMAC_MODE_MASK, sha204_command_parameters::data_1, sha204_command_parameters::data_2, sha204_command_parameters::data_3, sha204_command_parameters::data_len_1, sha204_command_parameters::data_len_2, sha204_command_parameters::data_len_3, DERIVE_KEY_RANDOM_FLAG, GENDIG_ZONE_DATA, GENDIG_ZONE_OTP, HMAC_MODE_MASK, LOCK_ZONE_MASK, LOCK_ZONE_NO_CRC, MAC_MODE_BLOCK2_TEMPKEY, MAC_MODE_MASK, NONCE_MODE_INVALID, NONCE_MODE_PASSTHROUGH, sha204_command_parameters::op_code, sha204_command_parameters::param_1, sha204_command_parameters::param_2, RANDOM_NO_SEED_UPDATE, READ_ZONE_MASK, READ_ZONE_MODE_32_BYTES, sha204_command_parameters::rx_buffer, sha204_command_parameters::rx_size, SHA204_BAD_PARAM, SHA204_CHECKMAC, SHA204_CMD_SIZE_MIN, SHA204_DERIVE_KEY, SHA204_DEVREV, SHA204_GENDIG, SHA204_HMAC, SHA204_KEY_ID_MAX, SHA204_LOCK, SHA204_MAC, SHA204_NONCE, SHA204_PAUSE, SHA204_RANDOM, SHA204_READ, SHA204_RSP_SIZE_MIN, SHA204_SUCCESS, SHA204_UPDATE_EXTRA, SHA204_WRITE, SHA204_ZONE_OTP, sha204_command_parameters::tx_buffer, sha204_command_parameters::tx_size, UPDATE_CONFIG_BYTE_86, and WRITE_ZONE_MASK.
Referenced by sha204m_execute().