#include <sha3.hpp>
Definition at line 42 of file sha3.hpp.
◆ encoder()
fc::sha3::encoder::encoder |
( |
| ) |
|
◆ ~encoder()
fc::sha3::encoder::~encoder |
( |
| ) |
|
◆ put()
void fc::sha3::encoder::put |
( |
char | c | ) |
|
|
inline |
Definition at line 49 of file sha3.hpp.
void write(const char *d, uint32_t dlen)
◆ 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{
220 my->ctx.keccak = !is_nist;
221 my->ctx.finalize((char*)h.data());
222 return h;
223}
◆ 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}
The documentation for this class was generated from the following files: