RSTT
3.1.0
Regional Seismic Travel Time
|
Go to the documentation of this file.
103 const string& getMD5HashHex(
uchar const* data,
int sze);
109 getMD5HashBin(data, sze);
110 getMD5HashHex(hhstr);
112 void getMD5HashHex(
const string& sin,
string& hhstr);
123 cuchar const* getMD5HashBin(
uchar const* data,
int sze);
127 cuchar const* getMD5HashBin();
131 static int hexStringSize();
132 static int hexSize();
133 static int binSize();
137 void setDefaultEndian();
139 void setLittleEndian();
140 bool getByteReverse()
const;
154 void update(
uchar const *data,
unsigned len);
166 void byteReverse(
uchar* buf,
unsigned n);
198 inline int MD50::hexStringSize()
200 return hexSize() +
sizeof(int);
208 inline int MD50::hexSize()
218 inline int MD50::binSize()
228 inline void MD50::setDefaultEndian()
233 md5BigEndian =
false;
241 inline void MD50::setBigEndian()
251 inline void MD50::setLittleEndian()
253 md5BigEndian =
false;
261 inline bool MD50::getByteReverse()
const
274 inline const string& MD50::getMD5HashHex(
uchar const* data,
int sze)
279 getMD5HashBin(data, sze);
280 return getMD5HashHex();
307 inline void MD50::getMD5HashHex(
const string& sin,
string& hhstr)
313 getMD5HashBin(data, sin.size());
314 getMD5HashHex(hhstr);
325 inline cuchar const* MD50::getMD5HashBin(
uchar const* data,
int sze)
330 return getMD5HashBin();
339 inline cuchar const* MD50::getMD5HashBin()
341 return (
cuchar*
const) md5BinKey;
361 w += fnc(x, y, z) + data;
362 w = w << s | w >> (32 - s);
380 return z ^ (x & (y ^ z));
397 return y ^ (z & (x ^ y));
void getMD5HashHex(uchar const *data, int sze, string &hhstr)
Third MD5 algorithmic operation function object.
MD50 & operator=(const MD50 &md50)
const unsigned char cuchar
Primary MD5 algorithmic step function object. The function object is templated (class f) off of the f...
This code implements the MD5 message-digest algorithm. The algorithm is due to Ron Rivest....
Second MD5 algorithmic operation function object.
Fourth MD5 algorithmic operation function object.
void getMD5HashHex(string &s) const
First MD5 algorithmic operation function object. Optimized from x & y | ~x & z.
static bool isBigEndian()
const string & getMD5HashHex() const