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

#include <sha3.hpp>

Classes

struct  impl
 

Public Member Functions

 encoder ()
 
 ~encoder ()
 
void write (const char *d, uint32_t dlen)
 
void put (char c)
 
void reset ()
 
sha3 result (bool is_nist=true)
 

Detailed Description

Definition at line 42 of file sha3.hpp.

Constructor & Destructor Documentation

◆ encoder()

fc::sha3::encoder::encoder ( )

Definition at line 208 of file sha3.cpp.

209{
210 reset();
211}

◆ ~encoder()

fc::sha3::encoder::~encoder ( )

Definition at line 207 of file sha3.cpp.

207{}

Member Function Documentation

◆ put()

void fc::sha3::encoder::put ( char c)
inline

Definition at line 49 of file sha3.hpp.

49{ write(&c, 1); }
void write(const char *d, uint32_t dlen)
Definition sha3.cpp:213
Here is the call graph for this function:

◆ reset()

void fc::sha3::encoder::reset ( )

Definition at line 224 of file sha3.cpp.

225{
226 my->ctx.init();
227}

◆ result()

sha3 fc::sha3::encoder::result ( bool is_nist = true)

Definition at line 217 of file sha3.cpp.

218{
219 sha3 h;
220 my->ctx.keccak = !is_nist;
221 my->ctx.finalize((char*)h.data());
222 return h;
223}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void fc::sha3::encoder::write ( const char * d,
uint32_t dlen )

Definition at line 213 of file sha3.cpp.

214{
215 my->ctx.update((const uint8_t*)d, dlen);
216}
unsigned char uint8_t
Definition stdint.h:124
Here is the caller graph for this function:

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