Lines Matching defs:check
16 #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);
291 // Calculate the integrity check. We reserved space for
292 // the Check field earlier so we don't need to check for
294 lzma_check_state check;
295 lzma_check_init(&check, block->check);
296 lzma_check_update(&check, block->check, in, in_size);
297 lzma_check_finish(&check, block->check);
299 memcpy(block->raw_check, check.buffer.u8, check_size);
300 memcpy(out + *out_pos, check.buffer.u8, check_size);