"Fossies" - the Fresh Open Source Software Archive

Member "irods-4.2.8/lib/hasher/include/checksum.hpp" (14 May 2020, 788 Bytes) of package /linux/misc/irods-4.2.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "checksum.hpp" see the Fossies "Dox" file reference documentation.

    1 /*** Copyright (c), The Regents of the University of California            ***
    2  *** For more information please refer to files in the COPYRIGHT directory ***/
    3 /* checksum.hpp - Extern global declaration for client API */
    4 
    5 #ifndef CHECKSUM_HPP_
    6 #define CHECKSUM_HPP_
    7 
    8 #include <stdio.h>
    9 #include <time.h>
   10 #include <string.h>
   11 #include "objInfo.h"
   12 
   13 #ifdef __cplusplus
   14 extern "C" {
   15 #endif
   16 
   17 #define SHA256_CHKSUM_PREFIX "sha2:"
   18 int verifyChksumLocFile( char *fileName, const char *myChksum, char *chksumStr );
   19 
   20 int
   21 chksumLocFile( const char *fileName, char *chksumStr, const char* );
   22 int
   23 hashToStr( unsigned char *digest, char *digestStr );
   24 int
   25 rcChksumLocFile( char *fileName, char *chksumFlag, keyValPair_t *condInput, const char* );
   26 
   27 #ifdef __cplusplus
   28 }
   29 #endif
   30 
   31 #endif  /* CHECKSUM_HPP_ */