Lines Matching refs:check
17 #include "check.h"
235 // check the version before validating the contents of *block.
239 if ((unsigned int)(block->check) > LZMA_CHECK_ID_MAX
243 if (!lzma_check_is_supported(block->check))
247 // here already. This way we don't need to check it again when adding
252 const size_t check_size = lzma_check_size(block->check);
301 // Calculate the integrity check. We reserved space for
302 // the Check field earlier so we don't need to check for
304 lzma_check_state check;
305 lzma_check_init(&check, block->check);
306 lzma_check_update(&check, block->check, in, in_size);
307 lzma_check_finish(&check, block->check);
309 memcpy(block->raw_check, check.buffer.u8, check_size);
310 memcpy(out + *out_pos, check.buffer.u8, check_size);