Lines Matching refs:check
3 /// \file check.h
4 /// \brief Internal API to different integrity check functions
67 /// \brief Structure to hold internal state of the check being calculated
70 /// change in future if new integrity check algorithms are added.
100 /// \brief Initialize *check depending on type
105 extern void lzma_check_init(lzma_check_state *check, lzma_check type);
107 /// Update the check state
108 extern void lzma_check_update(lzma_check_state *check, lzma_check type,
111 /// Finish the check calculation and store the result to check->buffer.u8.
112 extern void lzma_check_finish(lzma_check_state *check, lzma_check type);
118 extern void lzma_sha256_init(lzma_check_state *check);
122 const uint8_t *buf, size_t size, lzma_check_state *check);
124 /// Finish the SHA-256 calculation and store the result to check->buffer.u8.
125 extern void lzma_sha256_finish(lzma_check_state *check);
131 lzma_sha256_init(lzma_check_state *check)
133 LZMA_SHA256FUNC(Init)(&check->state.sha256);
138 lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check)
144 LZMA_SHA256FUNC(Update)(&check->state.sha256, buf, UINT32_MAX);
150 LZMA_SHA256FUNC(Update)(&check->state.sha256, buf, size);
155 lzma_sha256_finish(lzma_check_state *check)
157 LZMA_SHA256FUNC(Final)(check->buffer.u8, &check->state.sha256);