载入中...
搜索中...
未找到
eve::data::HashFunction类 参考abstract
#include <HashFunction.h>
类 | |
| struct | Value |
Public 成员函数 | |
| virtual | ~HashFunction () |
| virtual void | hash (std::string function, const char *input, uint64_t length, Value &output) const =0 |
| Hash the input, producing an set of bytes as output. | |
| virtual bool | isSupported (std::string function) const =0 |
静态 Public 成员函数 | |
| static HashFunction * | getHashFunction (std::string function) |
| Get a HashFunction instance for the given function. | |
Protected 成员函数 | |
| HashFunction () | |
详细描述
在文件 HashFunction.h 第 14 行定义.
构造及析构函数说明
◆ ~HashFunction()
|
inlinevirtual |
在文件 HashFunction.h 第 41 行定义.
◆ HashFunction()
|
inlineprotected |
在文件 HashFunction.h 第 61 行定义.
成员函数说明
◆ getHashFunction()
|
static |
Get a HashFunction instance for the given function.
- 参数
-
[in] function The selected hash function.
- 返回
- An instance of HashFunction for the given function, or NULL if not available.
Available functions:
- "md5"
- "sha1"
- "sha224"
- "sha256"
- "sha384"
- "sha512"
在文件 HashFunction.cpp 第 585 行定义.
被这些函数引用 eve::data::hash().
◆ hash()
|
pure virtual |
Hash the input, producing an set of bytes as output.
- 参数
-
[in] function The selected hash function. [in] input The input data to hash. [in] length The length of the input data. [out] output The result of the hash function.
被这些函数引用 eve::data::hash().
◆ isSupported()
|
pure virtual |
- 参数
-
[in] function The requested hash function.
- 返回
- Whether this HashFunction instance implements the given function.
该类的文档由以下文件生成:
- src/modules/data/HashFunction.h
- src/modules/data/HashFunction.cpp