irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

checksum.hpp File Reference
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "objInfo.h"
Include dependency graph for checksum.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define SHA256_CHKSUM_PREFIX   "sha2:"


int verifyChksumLocFile (char *fileName, const char *myChksum, char *chksumStr)
int chksumLocFile (const char *fileName, char *chksumStr, const char *)
int hashToStr (unsigned char *digest, char *digestStr)
int rcChksumLocFile (char *fileName, char *chksumFlag, keyValPair_t *condInput, const char *)

Macro Definition Documentation


#define SHA256_CHKSUM_PREFIX   "sha2:"

Definition at line 18 of file checksum.hpp.

Function Documentation

◆ chksumLocFile()

int chksumLocFile ( const char *  fileName,
char *  chksumStr,
const char *   

◆ hashToStr()

int hashToStr ( unsigned char *  digest,
char *  digestStr 

Definition at line 206 of file checksum.cpp.

Referenced by clientLoginTTL(), db_make_limited_pw_op(), and db_make_temp_pw_op().

◆ rcChksumLocFile()

int rcChksumLocFile ( char *  fileName,
char *  chksumFlag,
keyValPair_t condInput,
const char *   

Definition at line 228 of file checksum.cpp.

References addKeyVal(), chksumLocFile(), LOG_NOTICE, NAME_LEN, NULL, REG_CHKSUM_KW, rodsLog(), RSYNC_CHKSUM_KW, irods.pypyodbc::status, USER__NULL_INPUT_ERR, USER_BAD_KEYWORD_ERR, and VERIFY_CHKSUM_KW.

Referenced by putFileUtil(), rsyncDataToFileUtil(), and rsyncFileToDataUtil().

Here is the call graph for this function:

◆ verifyChksumLocFile()

int verifyChksumLocFile ( char *  fileName,
const char *  myChksum,
char *  chksumStr 

Definition at line 178 of file checksum.cpp.

References CHKSUM_LEN, chksumLocFile(), irods::get_hash_scheme_from_checksum(), NULL, irods::error::ok(), irods.pypyodbc::status, and USER_CHKSUM_MISMATCH.

Referenced by bulkProcAndRegSubfile(), chkObjConsistency(), and rcDataObjGet().

Here is the call graph for this function: