25 #ifdef HAVE_CHECK_CRC32
34 #ifdef HAVE_CHECK_CRC64
46 #ifdef HAVE_CHECK_SHA256
59 return available_checks[(
unsigned int)(
type)];
79 return check_sizes[(
unsigned int)(
type)];
90 #ifdef HAVE_CHECK_CRC32
92 check->state.crc32 = 0;
96 #ifdef HAVE_CHECK_CRC64
98 check->state.crc64 = 0;
102 #ifdef HAVE_CHECK_SHA256
121 #ifdef HAVE_CHECK_CRC32
127 #ifdef HAVE_CHECK_CRC64
133 #ifdef HAVE_CHECK_SHA256
151 #ifdef HAVE_CHECK_CRC32
157 #ifdef HAVE_CHECK_CRC64
163 #ifdef HAVE_CHECK_SHA256
lzma_check
Type of the integrity check (Check ID)
#define LZMA_CHECK_ID_MAX
Maximum valid Check ID.
Internal API to different integrity check functions.
void lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check)
Update the SHA-256 hash state.
void lzma_sha256_init(lzma_check_state *check)
Prepare SHA-256 state for new input.
void lzma_sha256_finish(lzma_check_state *check)
Finish the SHA-256 calculation and store the result to check->buffer.u8.
void lzma_check_finish(lzma_check_state *check, lzma_check type)
Finish the check calculation and store the result to check->buffer.u8.
void lzma_check_update(lzma_check_state *check, lzma_check type, const uint8_t *buf, size_t size)
Update the check state.
void lzma_check_init(lzma_check_state *check, lzma_check type)
Initialize *check depending on type.
Structure to hold internal state of the check being calculated.
unsigned char lzma_bool
Boolean.