![]() |
计算MD5
#include "MD5.hpp"
Public 类型 | |
| typedef unsigned int | size_type |
Public 成员函数 | |
| MD5 () | |
| 初始化MD5上下文 更多... | |
| MD5 (const std::string &text) | |
| 使用特定数据初始化MD5上下文 更多... | |
| void | update (const unsigned char *buf, size_type length) |
| 使用新的数据更新MD5 更多... | |
| void | update (const char *buf, size_type length) |
| 使用新的数据更新MD5 更多... | |
| MD5 & | finalize () |
| 生成最终MD5 更多... | |
| std::string | hexdigest () const |
| MD5二进制数据转字符串输出 更多... | |
友元 | |
| std::ostream & | operator<< (std::ostream &, MD5 md5) |
| typedef unsigned int Emx::MD5::size_type |
| Emx::MD5::MD5 | ( | ) |
| Emx::MD5::MD5 | ( | const std::string & | text | ) |
| void Emx::MD5::update | ( | const unsigned char * | buf, |
| size_type | length | ||
| ) |
| buf | [in]数据指针 |
| length | [in]数据大小 |
| void Emx::MD5::update | ( | const char * | buf, |
| size_type | length | ||
| ) |
| buf | [in]数据指针 |
| length | [in]数据大小 |
| MD5& Emx::MD5::finalize | ( | ) |
| std::string Emx::MD5::hexdigest | ( | ) | const |
|
friend |