Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::blake2b_wrapper Class Reference

#include <blake2.hpp>

Public Types

enum  blake2b_constant { BLAKE2B_BLOCKBYTES = 128 }
 

Public Member Functions

void blake2b_compress (blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES], size_t r, const yield_function_t &yield)
 

Detailed Description

Definition at line 26 of file blake2.hpp.

Member Enumeration Documentation

◆ blake2b_constant

Enumerator
BLAKE2B_BLOCKBYTES 

Definition at line 28 of file blake2.hpp.

28{ BLAKE2B_BLOCKBYTES = 128 };

Member Function Documentation

◆ blake2b_compress()

void fc::blake2b_wrapper::blake2b_compress ( blake2b_state * S,
const uint8_t block[BLAKE2B_BLOCKBYTES],
size_t r,
const yield_function_t & yield )

Definition at line 67 of file blake2.cpp.

67 {
68 blake2b_compress_init(S, block, r);
69
70 for (i = 0; i < r; ++i) {
71 ROUND(i % 10);
72 if (i % 100) {
73 yield();
74 }
75 }
76
77 blake2b_compress_end(S);
78}
const mie::Vuint & r
Definition bn.cpp:28
thread_local yield_t yield
Definition yield.hpp:52
Here is the caller graph for this function:

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