|
Rizin
unix-like reverse engineering framework and cli tools
|
Single API to access different integrity checks. More...
#include "check.h"Go to the source code of this file.
Functions | |
| LZMA_API (lzma_bool) | |
| LZMA_API (uint32_t) | |
| void | lzma_check_init (lzma_check_state *check, lzma_check type) |
| Initialize *check depending on type. More... | |
| void | lzma_check_update (lzma_check_state *check, lzma_check type, const uint8_t *buf, size_t size) |
| Update the check state. More... | |
| void | lzma_check_finish (lzma_check_state *check, lzma_check type) |
| Finish the check calculation and store the result to check->buffer.u8. More... | |
Single API to access different integrity checks.
Definition in file check.c.
| LZMA_API | ( | lzma_bool | ) |
| LZMA_API | ( | uint32_t | ) |
| void lzma_check_finish | ( | lzma_check_state * | check, |
| lzma_check | type | ||
| ) |
Finish the check calculation and store the result to check->buffer.u8.
Definition at line 148 of file check.c.
References check, conv32le, conv64le, LZMA_CHECK_CRC32, LZMA_CHECK_CRC64, LZMA_CHECK_SHA256, lzma_sha256_finish(), and type.
Referenced by block_buffer_encode(), block_decode(), and block_encode().
| void lzma_check_init | ( | lzma_check_state * | check, |
| lzma_check | type | ||
| ) |
Initialize *check depending on type.
Definition at line 84 of file check.c.
References check, LZMA_CHECK_CRC32, LZMA_CHECK_CRC64, LZMA_CHECK_NONE, LZMA_CHECK_SHA256, lzma_sha256_init(), and type.
Referenced by block_buffer_encode(), LZMA_API(), lzma_block_decoder_init(), and lzma_block_encoder_init().
| void lzma_check_update | ( | lzma_check_state * | check, |
| lzma_check | type, | ||
| const uint8_t * | buf, | ||
| size_t | size | ||
| ) |
Update the check state.
Definition at line 117 of file check.c.
References check, LZMA_CHECK_CRC32, LZMA_CHECK_CRC64, LZMA_CHECK_SHA256, lzma_sha256_update(), and type.
Referenced by block_buffer_encode(), block_decode(), block_encode(), and hash_append().