Blender V5.0
MD5Hash Class Reference

#include <md5.h>

Public Member Functions

 MD5Hash ()
 ~MD5Hash ()
void append (const uint8_t *data, const int nbytes)
void append (const string &str)
bool append_file (const string &filepath)
string get_hex ()

Protected Member Functions

void process (const uint8_t *data)
void finish (uint8_t digest[16])

Protected Attributes

uint32_t count [2]
uint32_t abcd [4]
uint8_t buf [64]

Detailed Description

Definition at line 19 of file md5.h.

Constructor & Destructor Documentation

◆ MD5Hash()

MD5Hash::MD5Hash ( )

Definition at line 257 of file md5.cpp.

References abcd, count, and T_MASK.

◆ ~MD5Hash()

MD5Hash::~MD5Hash ( )
default

References data, and str.

Member Function Documentation

◆ append() [1/2]

void MD5Hash::append ( const string & str)

Definition at line 310 of file md5.cpp.

References append(), and str.

◆ append() [2/2]

void MD5Hash::append ( const uint8_t * data,
const int nbytes )

◆ append_file()

bool MD5Hash::append_file ( const string & filepath)

Definition at line 317 of file md5.cpp.

References append(), LOG_ERROR, and path_fopen().

◆ finish()

void MD5Hash::finish ( uint8_t digest[16])
protected

Definition at line 342 of file md5.cpp.

References abcd, append(), count, data, i, and pad.

Referenced by get_hex().

◆ get_hex()

string MD5Hash::get_hex ( )

Definition at line 367 of file md5.cpp.

References buf, finish(), and i.

Referenced by ShaderGraph::compute_displacement_hash(), and util_md5_string().

◆ process()

void MD5Hash::process ( const uint8_t * data)
protected

Definition at line 86 of file md5.cpp.

References abcd, b, data, i, SET, T1, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T2, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T3, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T4, T40, T41, T42, T43, T44, T45, T46, T47, T48, T49, T5, T50, T51, T52, T53, T54, T55, T56, T57, T58, T59, T6, T60, T61, T62, T63, T64, T7, T8, T9, w(), and X.

Referenced by append().

Member Data Documentation

◆ abcd

uint32_t MD5Hash::abcd[4]
protected

Definition at line 34 of file md5.h.

Referenced by finish(), MD5Hash(), and process().

◆ buf

uint8_t MD5Hash::buf[64]
protected

Definition at line 35 of file md5.h.

Referenced by append(), and get_hex().

◆ count

uint32_t MD5Hash::count[2]
protected

Definition at line 33 of file md5.h.

Referenced by append(), finish(), and MD5Hash().


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