Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
check.c File Reference

Single API to access different integrity checks. More...

#include "check.h"

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.
 
void lzma_check_update (lzma_check_state *check, lzma_check type, const uint8_t *buf, size_t size)
 Update the check state.
 
void lzma_check_finish (lzma_check_state *check, lzma_check type)
 Finish the check calculation and store the result to check->buffer.u8.
 

Detailed Description

Single API to access different integrity checks.

Function Documentation

◆ LZMA_API() [1/2]

LZMA_API ( lzma_bool )
extern

◆ LZMA_API() [2/2]

LZMA_API ( uint32_t )
extern

◆ lzma_check_finish()

void lzma_check_finish ( lzma_check_state * check,
lzma_check type )
extern

Finish the check calculation and store the result to check->buffer.u8.

◆ lzma_check_init()

void lzma_check_init ( lzma_check_state * check,
lzma_check type )
extern

Initialize *check depending on type.

Returns
LZMA_OK on success. LZMA_UNSUPPORTED_CHECK if the type is not supported by the current version or build of liblzma. LZMA_PROG_ERROR if type > LZMA_CHECK_ID_MAX.

◆ lzma_check_update()

void lzma_check_update ( lzma_check_state * check,
lzma_check type,
const uint8_t * buf,
size_t size )
extern

Update the check state.