XZ Utils
5.1.0alpha
|
SHA-256. More...
#include "check.h"
Functions | |
static void | transform (uint32_t state[static 8], const uint32_t data[static 16]) |
static void | process (lzma_check_state *check) |
void | lzma_sha256_init (lzma_check_state *check) |
Prepare SHA-256 state for new input. | |
void | lzma_sha256_update (const uint8_t *buf, size_t size, lzma_check_state *check) |
Update the SHA-256 hash state. | |
void | lzma_sha256_finish (lzma_check_state *check) |
Finish the SHA-256 calculation and store the result to check->buffer.u8. | |
Variables | |
static const uint32_t | SHA256_K [64] |
SHA-256.
#define blk2 | ( | i | ) |
#define R | ( | i | ) |
void lzma_sha256_init | ( | lzma_check_state * | check | ) |
Prepare SHA-256 state for new input.
References lzma_sha256_state::size, and lzma_sha256_state::state.
Referenced by lzma_check_init().
void lzma_sha256_update | ( | const uint8_t * | buf, |
size_t | size, | ||
lzma_check_state * | check | ||
) |
Update the SHA-256 hash state.
References lzma_sha256_state::size.
Referenced by lzma_check_update().
void lzma_sha256_finish | ( | lzma_check_state * | check | ) |
Finish the SHA-256 calculation and store the result to check->buffer.u8.
References lzma_sha256_state::size, and lzma_sha256_state::state.
Referenced by lzma_check_finish().
|
static |