AGXDynamics  2.31.1.0
agxStream::MD5Checksum Class Reference

#include <MD5Checksum.h>

Public Member Functions

 MD5Checksum ()
 
virtual ~MD5Checksum ()
 

Static Public Member Functions

static std::string getMD5 (const char *pBuf, size_t numBytes)
 Read numBytes from pBuf and create a MD5 checksum from the read data. More...
 
static std::string getMD5 (std::istream &stream)
 Read from stream until end of file create a MD5 checksum from the read data. More...
 
static std::string getMD5 (const std::string &strFilePath)
 Read until end of file in file strFilePath and create a MD5 checksum from the read data. More...
 
static std::string getMD5 (std::istream &stream, size_t numBytes)
 Read numBytes (or until end of stream) from stream and create a MD5 checksum from the read data. More...
 

Protected Member Functions

void byteToDWord (uint32_t *Output, const char *Input, uint32_t nLength)
 
void dWordToByte (char *Output, uint32_t *Input, uint32_t nLength)
 
void FF (uint32_t &A, uint32_t B, uint32_t C, uint32_t D, uint32_t X, uint32_t S, uint32_t T)
 
std::string final ()
 
void GG (uint32_t &A, uint32_t B, uint32_t C, uint32_t D, uint32_t X, uint32_t S, uint32_t T)
 
void HH (uint32_t &A, uint32_t B, uint32_t C, uint32_t D, uint32_t X, uint32_t S, uint32_t T)
 
void II (uint32_t &A, uint32_t B, uint32_t C, uint32_t D, uint32_t X, uint32_t S, uint32_t T)
 
uint32_t rotateLeft (uint32_t x, int n)
 
void transform (const char Block[64])
 
void update (const char *Input, size_t nInputLen)
 

Detailed Description

Definition at line 324 of file MD5Checksum.h.

Constructor & Destructor Documentation

◆ MD5Checksum()

agxStream::MD5Checksum::MD5Checksum ( )

◆ ~MD5Checksum()

virtual agxStream::MD5Checksum::~MD5Checksum ( )
inlinevirtual

Definition at line 357 of file MD5Checksum.h.

References agxData::transform().

Member Function Documentation

◆ byteToDWord()

void agxStream::MD5Checksum::byteToDWord ( uint32_t *  Output,
const char *  Input,
uint32_t  nLength 
)
inlineprotected

◆ dWordToByte()

void agxStream::MD5Checksum::dWordToByte ( char *  Output,
uint32_t *  Input,
uint32_t  nLength 
)
inlineprotected

◆ FF()

void agxStream::MD5Checksum::FF ( uint32_t &  A,
uint32_t  B,
uint32_t  C,
uint32_t  D,
uint32_t  X,
uint32_t  S,
uint32_t  T 
)
inlineprotected

◆ final()

std::string agxStream::MD5Checksum::final ( )
protected

◆ getMD5() [1/4]

static std::string agxStream::MD5Checksum::getMD5 ( const char *  pBuf,
size_t  numBytes 
)
static

Read numBytes from pBuf and create a MD5 checksum from the read data.

Will Throw std::runtime_error if error occurs.

Returns
string with MD5 checksum based on in-data.

◆ getMD5() [2/4]

static std::string agxStream::MD5Checksum::getMD5 ( std::istream &  stream)
static

Read from stream until end of file create a MD5 checksum from the read data.

Will Throw std::runtime_error if error occurs.

Returns
string with MD5 checksum based on in-data.

◆ getMD5() [3/4]

static std::string agxStream::MD5Checksum::getMD5 ( const std::string &  strFilePath)
static

Read until end of file in file strFilePath and create a MD5 checksum from the read data.

Will Throw std::runtime_error if error occurs.

Returns
string with MD5 checksum based on in-data.

◆ getMD5() [4/4]

static std::string agxStream::MD5Checksum::getMD5 ( std::istream &  stream,
size_t  numBytes 
)
static

Read numBytes (or until end of stream) from stream and create a MD5 checksum from the read data.

Will Throw std::runtime_error if error occurs.

Returns
string with MD5 checksum based on in-data.

◆ GG()

void agxStream::MD5Checksum::GG ( uint32_t &  A,
uint32_t  B,
uint32_t  C,
uint32_t  D,
uint32_t  X,
uint32_t  S,
uint32_t  T 
)
inlineprotected

◆ HH()

void agxStream::MD5Checksum::HH ( uint32_t &  A,
uint32_t  B,
uint32_t  C,
uint32_t  D,
uint32_t  X,
uint32_t  S,
uint32_t  T 
)
inlineprotected

◆ II()

void agxStream::MD5Checksum::II ( uint32_t &  A,
uint32_t  B,
uint32_t  C,
uint32_t  D,
uint32_t  X,
uint32_t  S,
uint32_t  T 
)
inlineprotected

◆ rotateLeft()

uint32_t agxStream::MD5Checksum::rotateLeft ( uint32_t  x,
int  n 
)
inlineprotected

◆ transform()

void agxStream::MD5Checksum::transform ( const char  Block[64])
protected

◆ update()

void agxStream::MD5Checksum::update ( const char *  Input,
size_t  nInputLen 
)
protected

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