载入中...
搜索中...
未找到

#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 HashFunctiongetHashFunction (std::string function)
 Get a HashFunction instance for the given function.
 

Protected 成员函数

 HashFunction ()
 

详细描述

在文件 HashFunction.h14 行定义.

构造及析构函数说明

◆ ~HashFunction()

virtual eve::data::HashFunction::~HashFunction ( )
inlinevirtual

在文件 HashFunction.h41 行定义.

◆ HashFunction()

eve::data::HashFunction::HashFunction ( )
inlineprotected

在文件 HashFunction.h61 行定义.

成员函数说明

◆ getHashFunction()

HashFunction * eve::data::HashFunction::getHashFunction ( std::string  function)
static

Get a HashFunction instance for the given function.

参数
[in]functionThe 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.cpp585 行定义.

被这些函数引用 eve::data::hash().

◆ hash()

virtual void eve::data::HashFunction::hash ( std::string  function,
const char *  input,
uint64_t  length,
Value output 
) const
pure virtual

Hash the input, producing an set of bytes as output.

参数
[in]functionThe selected hash function.
[in]inputThe input data to hash.
[in]lengthThe length of the input data.
[out]outputThe result of the hash function.

被这些函数引用 eve::data::hash().

◆ isSupported()

virtual bool eve::data::HashFunction::isSupported ( std::string  function) const
pure virtual
参数
[in]functionThe requested hash function.
返回
Whether this HashFunction instance implements the given function.

该类的文档由以下文件生成: