"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libjte/checksum.h" between
xorriso-1.5.2.tar.gz and xorriso-1.5.4.tar.gz

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.

checksum.h  (xorriso-1.5.2):checksum.h  (xorriso-1.5.4)
/* /*
* checksum.h * checksum.h
* *
* Copyright (c) 2008- Steve McIntyre <steve@einval.com> * Copyright (c) 2008-2019 Steve McIntyre <steve@einval.com>
* *
* Definitions and prototypes for a generic checksum interface, used * Definitions and prototypes for a generic checksum interface, used
* in JTE. Inspired heavily by the interface to the MD5 code we're * in JTE. Inspired heavily by the interface to the MD5 code we're
* using already. * using already.
* *
* GNU GPL v2 * GNU GPL v2
*/ */
#ifndef _JTE_CHECKSUM_H_ #ifndef _JTE_CHECKSUM_H_
#define _JTE_CHECKSUM_H_ #define _JTE_CHECKSUM_H_
skipping to change at line 78 skipping to change at line 78
/* Helper function: return a pointer to a string containing the ASCII /* Helper function: return a pointer to a string containing the ASCII
* hexadecimal dump of a checksum. Only valid once checksum_final() * hexadecimal dump of a checksum. Only valid once checksum_final()
* has been called, otherwise will return NULL */ * has been called, otherwise will return NULL */
const char * checksum_hex(checksum_context_t *context, const char * checksum_hex(checksum_context_t *context,
enum checksum_types which); enum checksum_types which);
extern int parse_checksum_algo(char *arg, extern int parse_checksum_algo(char *arg,
int *algo); int *algo);
/* Helper function: Simply calculate the checksum of the first "size"
* bytes of a file using the specified algorithm. If size == -1,
* calculate the checksum for the whole of the file. The caller is
* responsible for passing in a large enough buffer as "digest", based
* on their choice of algorithm. */
extern int checksum_calculate(char *filename,
int64_t size,
unsigned char *digest,
enum checksum_types which);
/* Helper function: Parse a hexadecimal string "in" of length "size"
characters (must be even) and convert to a raw checksum in
"out". out must be allocated of a large-enough size by the
caller */
int checksum_parse_hex(char *in, unsigned char *out, int size);
#endif #endif
/* _JTE_CHECKSUM_H_ */ /* _JTE_CHECKSUM_H_ */
 End of changes. 2 change blocks. 
1 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)