Electroneum
Loading...
Searching...
No Matches
test_cn_slow_hash< variant > Class Template Reference

#include <cn_slow_hash.h>

Classes

struct  data_t

Public Member Functions

bool init ()
bool test ()

Static Public Attributes

static const size_t loop_count = 10

Detailed Description

template<unsigned int variant>
class test_cn_slow_hash< variant >

Definition at line 39 of file cn_slow_hash.h.

Member Function Documentation

◆ init()

template<unsigned int variant>
bool test_cn_slow_hash< variant >::init ( )
inline

Definition at line 53 of file cn_slow_hash.h.

54 {
55 if (!epee::string_tools::hex_to_pod("63617665617420656d70746f763617665617420656d70746f72263617665617420656d70746f7201020304", m_data))
56 return false;
57
58 return true;
59 }
Here is the call graph for this function:

◆ test()

template<unsigned int variant>
bool test_cn_slow_hash< variant >::test ( )
inline

Definition at line 61 of file cn_slow_hash.h.

62 {
64 crypto::cn_slow_hash(&m_data, sizeof(m_data), hash, variant);
65 return true;
66 }
void cn_slow_hash(const void *data, size_t length, char *hash, int variant, int prehashed, uint64_t height)
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

template<unsigned int variant>
const size_t test_cn_slow_hash< variant >::loop_count = 10
static

Definition at line 42 of file cn_slow_hash.h.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/performance_tests/cn_slow_hash.h