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

#include <sha224.hpp>

Classes

struct  impl
 

Public Member Functions

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

Detailed Description

Definition at line 34 of file sha224.hpp.

Constructor & Destructor Documentation

◆ encoder()

fc::sha224::encoder::encoder ( )

Definition at line 32 of file sha224.cpp.

32 {
33 reset();
34 }

◆ ~encoder()

fc::sha224::encoder::~encoder ( )

Definition at line 31 of file sha224.cpp.

31{}

Member Function Documentation

◆ put()

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

Definition at line 41 of file sha224.hpp.

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

◆ reset()

void fc::sha224::encoder::reset ( )

Definition at line 53 of file sha224.cpp.

53 {
54 SHA224_Init( &my->ctx);
55 }

◆ result()

sha224 fc::sha224::encoder::result ( )

Definition at line 48 of file sha224.cpp.

48 {
49 sha224 h;
50 SHA224_Final((uint8_t*)h.data(), &my->ctx );
51 return h;
52 }
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::sha224::encoder::write ( const char * d,
uint32_t dlen )

Definition at line 45 of file sha224.cpp.

45 {
46 SHA224_Update( &my->ctx, d, dlen);
47 }
Here is the caller graph for this function:

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