Lines Matching defs:check
3 /// \file check.h
4 /// \brief Internal API to different integrity check functions
77 /// \brief Structure to hold internal state of the check being calculated
80 /// change in future if new integrity check algorithms are added.
110 /// \brief Initialize *check depending on type
115 extern void lzma_check_init(lzma_check_state *check, lzma_check type);
117 /// Update the check state
118 extern void lzma_check_update(lzma_check_state *check, lzma_check type,
121 /// Finish the check calculation and store the result to check->buffer.u8.
122 extern void lzma_check_finish(lzma_check_state *check, lzma_check type);
128 extern void lzma_sha256_init(lzma_check_state *check);
132 const uint8_t *buf, size_t size, lzma_check_state *check);
134 /// Finish the SHA-256 calculation and store the result to check->buffer.u8.
135 extern void lzma_sha256_finish(lzma_check_state *check);
141 lzma_sha256_init(lzma_check_state *check)
143 LZMA_SHA256FUNC(Init)(&check->state.sha256);
148 lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check)
154 LZMA_SHA256FUNC(Update)(&check->state.sha256, buf, UINT32_MAX);
160 LZMA_SHA256FUNC(Update)(&check->state.sha256, buf, size);
165 lzma_sha256_finish(lzma_check_state *check)
167 LZMA_SHA256FUNC(Final)(check->buffer.u8, &check->state.sha256);