XZ Utils
5.2.5
|
SHA-256. More...
#include "check.h"
Functions | |
static uint32_t | rotr_32 (uint32_t num, unsigned amount) |
static void | transform (uint32_t state[8], const uint32_t data[16]) |
static void | process (lzma_check_state *check) |
void | lzma_sha256_init (lzma_check_state *check) |
Prepare SHA-256 state for new input. More... | |
void | lzma_sha256_update (const uint8_t *buf, size_t size, lzma_check_state *check) |
Update the SHA-256 hash state. More... | |
void | lzma_sha256_finish (lzma_check_state *check) |
Finish the SHA-256 calculation and store the result to check->buffer.u8. More... | |
Variables | |
static const uint32_t | SHA256_K [64] |
SHA-256.
#define blk2 | ( | i | ) |
#define R | ( | i, | |
j, | |||
blk | |||
) |
void lzma_sha256_init | ( | lzma_check_state * | check | ) |
Prepare SHA-256 state for new input.
References lzma_sha256_state::size, lzma_sha256_state::state, and lzma_check_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_check_state::buffer, lzma_sha256_state::size, and lzma_check_state::state.
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_check_state::buffer, lzma_sha256_state::size, and lzma_check_state::state.
|
static |