Electroneum
test_sc_reduce32 Class Reference

#include <sc_reduce32.h>

Collaboration diagram for test_sc_reduce32:

Public Member Functions

bool init ()
 
bool test ()
 

Static Public Attributes

static const size_t loop_count = 10000000
 

Detailed Description

Definition at line 34 of file sc_reduce32.h.

Member Function Documentation

◆ init()

bool test_sc_reduce32::init ( )
inline

Definition at line 39 of file sc_reduce32.h.

40  {
41  m_hash = crypto::rand<crypto::hash>();
42  return true;
43  }

◆ test()

bool test_sc_reduce32::test ( )
inline

Definition at line 45 of file sc_reduce32.h.

46  {
47  crypto::hash reduced = m_hash;
48  sc_reduce32((unsigned char*)reduced.data);
49  return true;
50  }
void sc_reduce32(unsigned char *)
POD_CLASS hash
Definition: hash.h:50
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

const size_t test_sc_reduce32::loop_count = 10000000
static

Definition at line 37 of file sc_reduce32.h.


The documentation for this class was generated from the following file: