/* < declarations of function return codes 
Support and FAQ: visit  */
uint8_t sha204c_check_crc(uint8_t *response)
/* < declarations of function return codes 
Support and FAQ: visit  */
uint8_t sha204c_check_crc(uint8_t *response)
{
	uint8_t crc[SHA204_CRC_SIZE];
	uint8_t count = response[SHA204_BUFFER_POS_COUNT];
	count -= SHA204_CRC_SIZE;
	sha204c_calculate_crc(count, response, crc);
	return (crc[0] == response[count] && crc[1] == response[count + 1])
		? SHA204_SUCCESS : SHA204_BAD_CRC;
}