FITS data block MD5 computation routine


Functions

const char * qfits_datamd5 (const char *filename)
 Compute the MD5 hash of data zones in a FITS file.

Detailed Description

This module offers MD5 computation over all data areas of a FITS file.

Function Documentation

const char* qfits_datamd5 const char *  filename  ) 
 

Compute the MD5 hash of data zones in a FITS file.

Parameters:
filename Name of the FITS file to examine.
Returns:
1 statically allocated character string, or NULL.
This function expects the name of a FITS file. It will compute the MD5 hash on all data blocks in the main data section and possibly extensions (including zero-padding blocks if necessary) and return it as a string suitable for inclusion into a FITS keyword.

The returned string is statically allocated inside this function, so do not free it or modify it. This function returns NULL in case of error.