#include <sha256.hpp>
Definition at line 37 of file sha256.hpp.
◆ encoder()
fc::sha256::encoder::encoder |
( |
| ) |
|
◆ ~encoder()
fc::sha256::encoder::~encoder |
( |
| ) |
|
◆ put()
void fc::sha256::encoder::put |
( |
char | c | ) |
|
|
inline |
Definition at line 44 of file sha256.hpp.
void write(const char *d, uint32_t dlen)
◆ reset()
void fc::sha256::encoder::reset |
( |
| ) |
|
Definition at line 67 of file sha256.cpp.
67 {
68 SHA256_Init( &my->ctx);
69 }
◆ result()
sha256 fc::sha256::encoder::result |
( |
| ) |
|
Definition at line 62 of file sha256.cpp.
62 {
64 SHA256_Final((
uint8_t*)h.data(), &my->ctx );
65 return h;
66 }
◆ write()
void fc::sha256::encoder::write |
( |
const char * | d, |
|
|
uint32_t | dlen ) |
Definition at line 59 of file sha256.cpp.
59 {
60 SHA256_Update( &my->ctx, d, dlen);
61 }
The documentation for this class was generated from the following files: