75 #ifndef ___SHA1_HDR___
76 #define ___SHA1_HDR___
84 #if !defined(SHA1_UTILITY_FUNCTIONS) && !defined(SHA1_NO_UTILITY_FUNCTIONS)
85 #define SHA1_UTILITY_FUNCTIONS
88 #if !defined(SHA1_STL_FUNCTIONS) && !defined(SHA1_NO_STL_FUNCTIONS)
89 #define SHA1_STL_FUNCTIONS
90 #if !defined(SHA1_UTILITY_FUNCTIONS)
91 #error STL functions require SHA1_UTILITY_FUNCTIONS.
97 #ifdef SHA1_UTILITY_FUNCTIONS
102 #ifdef SHA1_STL_FUNCTIONS
114 #if !defined(SHA1_LITTLE_ENDIAN) && !defined(SHA1_BIG_ENDIAN)
115 #define SHA1_LITTLE_ENDIAN
121 #if !defined(SHA1_WIPE_VARIABLES) && !defined(SHA1_NO_WIPE_VARIABLES)
122 #define SHA1_WIPE_VARIABLES
126 #define _sntprintf std::snprintf
128 #define _sntprintf std::snprintf
133 #define _fseeki64 fseek
136 #define _ftelli64 ftell
142 #define UINT_8 uint8_t
143 #define UINT_32 uint32_t
144 #define UINT_64 uint64_t
145 #define INT_64 int64_t
162 #ifdef SHA1_UTILITY_FUNCTIONS
188 #ifdef SHA1_UTILITY_FUNCTIONS
190 bool HashFile(
const char* szFileName);
196 #ifdef SHA1_UTILITY_FUNCTIONS
200 #ifdef SHA1_STL_FUNCTIONS
218 #endif // ___SHA1_HDR___
bool ReportHash(char *szReport, REPORT_TYPE rtReportType=REPORT_HEX) const
void Update(const UINT_8 *pbData, UINT_32 uLen)
bool ReportHashStl(std::string &strOut, REPORT_TYPE rtReportType=REPORT_HEX) const
GLsizei const GLchar *const * string
bool HashFile(const char *szFileName)
bool GetHash(UINT_8 *pbDest) const
#define OIIO_NAMESPACE_END
#define OIIO_NAMESPACE_BEGIN