xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

checksum.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  checksum_info
 

Macros

#define CHECK_MD5_USED   (1 << CHECK_MD5)
 
#define CHECK_SHA1_USED   (1 << CHECK_SHA1)
 
#define CHECK_SHA256_USED   (1 << CHECK_SHA256)
 
#define CHECK_SHA512_USED   (1 << CHECK_SHA512)
 
#define CHECK_ALL_USED   0xFFFFFFFF
 

Typedefs

typedef void checksum_context_t
 

Enumerations

enum  checksum_types {
  CHECK_MD5 = 0 , CHECK_SHA1 , CHECK_SHA256 , CHECK_SHA512 ,
  NUM_CHECKSUMS
}
 

Functions

struct checksum_infochecksum_information (enum checksum_types which)
 
checksum_context_tchecksum_init_context (int checksums, const char *owner)
 
void checksum_free_context (checksum_context_t *context)
 
void checksum_update (checksum_context_t *context, unsigned char const *buf, unsigned int len)
 
void checksum_final (checksum_context_t *context)
 
void checksum_copy (checksum_context_t *context, enum checksum_types which, unsigned char *digest)
 
const char * checksum_hex (checksum_context_t *context, enum checksum_types which)
 
int parse_checksum_algo (char *arg, int *algo)
 
int checksum_calculate (char *filename, int64_t size, unsigned char *digest, enum checksum_types which)
 
int checksum_parse_hex (char *in, unsigned char *out, int size)
 

Macro Definition Documentation

◆ CHECK_ALL_USED

#define CHECK_ALL_USED   0xFFFFFFFF

Definition at line 29 of file checksum.h.

◆ CHECK_MD5_USED

#define CHECK_MD5_USED   (1 << CHECK_MD5)

Definition at line 25 of file checksum.h.

◆ CHECK_SHA1_USED

#define CHECK_SHA1_USED   (1 << CHECK_SHA1)

Definition at line 26 of file checksum.h.

◆ CHECK_SHA256_USED

#define CHECK_SHA256_USED   (1 << CHECK_SHA256)

Definition at line 27 of file checksum.h.

◆ CHECK_SHA512_USED

#define CHECK_SHA512_USED   (1 << CHECK_SHA512)

Definition at line 28 of file checksum.h.

Typedef Documentation

◆ checksum_context_t

typedef void checksum_context_t

Definition at line 31 of file checksum.h.

Enumeration Type Documentation

◆ checksum_types

Enumerator
CHECK_MD5 
CHECK_SHA1 
CHECK_SHA256 
CHECK_SHA512 
NUM_CHECKSUMS 

Definition at line 16 of file checksum.h.

Function Documentation

◆ checksum_calculate()

int checksum_calculate ( char *  filename,
int64_t  size,
unsigned char *  digest,
enum checksum_types  which 
)

◆ checksum_copy()

void checksum_copy ( checksum_context_t context,
enum checksum_types  which,
unsigned char *  digest 
)

◆ checksum_final()

◆ checksum_free_context()

◆ checksum_hex()

const char* checksum_hex ( checksum_context_t context,
enum checksum_types  which 
)

◆ checksum_information()

struct checksum_info* checksum_information ( enum checksum_types  which)

Definition at line 180 of file checksum.c.

References algorithms.

Referenced by write_jigdo_file().

◆ checksum_init_context()

◆ checksum_parse_hex()

int checksum_parse_hex ( char *  in,
unsigned char *  out,
int  size 
)

Definition at line 576 of file checksum.c.

Referenced by parse_checksum_list().

◆ checksum_update()

void checksum_update ( checksum_context_t context,
unsigned char const *  buf,
unsigned int  len 
)

◆ parse_checksum_algo()

int parse_checksum_algo ( char *  arg,
int *  algo 
)