CL_HashFunctions Class Reference
[clanCore Math]

A Collection of checksum functions. More...

#include <hash_functions.h>

List of all members.

Static Public Member Functions

Operations

static cl_ubyte32 crc32 (const void *data, int size, cl_ubyte32 running_crc=0)
 Calculate a CRC32 checksum on the data.
static cl_ubyte32 adler32 (const void *data, int size, cl_ubyte32 running_adler32=0)
 Calculate a CRC32 checksum on the data.
static CL_String8 sha1 (const void *data, int size, bool uppercase=false)
 Generate SHA-1 hash from data.
static CL_String8 sha1 (const CL_StringRef8 &data, bool uppercase=false)
 Sha1.
static CL_String8 sha1 (const CL_DataBuffer &data, bool uppercase=false)
 Sha1.
static void sha1 (const void *data, int size, unsigned char out_hash[20])
 Sha1.
static void sha1 (const CL_StringRef8 &data, unsigned char out_hash[20])
 Sha1.
static void sha1 (const CL_DataBuffer &data, unsigned char out_hash[20])
 Sha1.

Detailed Description

A Collection of checksum functions.


Member Function Documentation

static cl_ubyte32 CL_HashFunctions::adler32 ( const void *  data,
int  size,
cl_ubyte32  running_adler32 = 0 
) [static]

Calculate a CRC32 checksum on the data.

static cl_ubyte32 CL_HashFunctions::crc32 ( const void *  data,
int  size,
cl_ubyte32  running_crc = 0 
) [static]

Calculate a CRC32 checksum on the data.

static void CL_HashFunctions::sha1 ( const CL_StringRef8 data,
unsigned char  out_hash[20] 
) [static]

Sha1.

Parameters:
data = String Ref8
out_hash = char
static void CL_HashFunctions::sha1 ( const void *  data,
int  size,
unsigned char  out_hash[20] 
) [static]

Sha1.

Parameters:
data = void
size = value
out_hash = char
static CL_String8 CL_HashFunctions::sha1 ( const CL_DataBuffer data,
bool  uppercase = false 
) [static]

Sha1.

Parameters:
data = Data Buffer
uppercase = bool
Returns:
String8
static CL_String8 CL_HashFunctions::sha1 ( const CL_StringRef8 data,
bool  uppercase = false 
) [static]

Sha1.

Parameters:
data = String Ref8
uppercase = bool
Returns:
String8
static CL_String8 CL_HashFunctions::sha1 ( const void *  data,
int  size,
bool  uppercase = false 
) [static]

Generate SHA-1 hash from data.

static void CL_HashFunctions::sha1 ( const CL_DataBuffer data,
unsigned char  out_hash[20] 
) [static]

Sha1.

Parameters:
data = Data Buffer
out_hash = char

The documentation for this class was generated from the following file: