Blender  V3.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MD5Hash Class Reference

#include <md5.h>

Public Member Functions

 MD5Hash ()
 
 ~MD5Hash ()
 
void append (const uint8_t *data, int size)
 
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 20 of file md5.h.

Constructor & Destructor Documentation

◆ MD5Hash()

MD5Hash::MD5Hash ( )

Definition at line 243 of file md5.cpp.

References abcd, count, and T_MASK.

◆ ~MD5Hash()

MD5Hash::~MD5Hash ( )

Definition at line 252 of file md5.cpp.

Member Function Documentation

◆ append() [1/2]

void MD5Hash::append ( const string &  str)

Definition at line 293 of file md5.cpp.

References append(), and str.

◆ append() [2/2]

void MD5Hash::append ( const uint8_t data,
int  size 
)

◆ append_file()

bool MD5Hash::append_file ( const string &  filepath)

Definition at line 300 of file md5.cpp.

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

◆ finish()

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

Definition at line 325 of file md5.cpp.

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

Referenced by get_hex().

◆ get_hex()

string MD5Hash::get_hex ( )

Definition at line 348 of file md5.cpp.

References buf, and finish().

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

◆ process()

void MD5Hash::process ( const uint8_t data)
protected

Definition at line 82 of file md5.cpp.

References Freestyle::a, abcd, usdtokens::b(), Freestyle::c, data, SET, t, 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 35 of file md5.h.

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

◆ buf

uint8_t MD5Hash::buf[64]
protected

Definition at line 36 of file md5.h.

Referenced by append(), and get_hex().

◆ count

uint32_t MD5Hash::count[2]
protected

Definition at line 34 of file md5.h.

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


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