/* Verify 3-bytes hamming codes for a data block whose size is multiple of 256 bytes. Each 256-bytes block is verified with its own code. */
uint32_t hamming_verify_256x(uint8_t *puc_data, uint32_t dw_size, const uint8_t *puc_code)
/* Verify 3-bytes hamming codes for a data block whose size is multiple of 256 bytes. Each 256-bytes block is verified with its own code. */
uint32_t hamming_verify_256x(uint8_t *puc_data, uint32_t dw_size, const uint8_t *puc_code)
{
	uint32_t error;
	uint32_t result = 0;
	while (dw_size > 0) {
		error = verify256(puc_data, puc_code);
		if (error == HAMMING_ERROR_SINGLE_BIT) {
			result = HAMMING_ERROR_SINGLE_BIT;
		} else {
			if (error) {
				return error;
			}
		}
		puc_data += 256;
		puc_code += 3;
		dw_size -= 256;
	}
	return result;
}