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

#include <sha256.hpp>

Classes

struct  impl
 

Public Member Functions

 encoder ()
 
 ~encoder ()
 
void write (const char *d, uint32_t dlen)
 
void put (char c)
 
void reset ()
 
sha256 result ()
 

Detailed Description

Definition at line 37 of file sha256.hpp.

Constructor & Destructor Documentation

◆ encoder()

fc::sha256::encoder::encoder ( )

Definition at line 40 of file sha256.cpp.

40 {
41 reset();
42 }

◆ ~encoder()

fc::sha256::encoder::~encoder ( )

Definition at line 39 of file sha256.cpp.

39{}

Member Function Documentation

◆ put()

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

Definition at line 44 of file sha256.hpp.

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

◆ 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 {
63 sha256 h;
64 SHA256_Final((uint8_t*)h.data(), &my->ctx );
65 return h;
66 }
unsigned char uint8_t
Definition stdint.h:124
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 }
Here is the caller graph for this function:

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