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

#include <sha1.hpp>

Classes

struct  impl
 

Public Member Functions

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

Detailed Description

Definition at line 31 of file sha1.hpp.

Constructor & Destructor Documentation

◆ encoder()

fc::sha1::encoder::encoder ( )

Definition at line 34 of file sha1.cpp.

34 {
35 reset();
36}

◆ ~encoder()

fc::sha1::encoder::~encoder ( )

Definition at line 33 of file sha1.cpp.

33{}

Member Function Documentation

◆ put()

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

Definition at line 38 of file sha1.hpp.

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

◆ reset()

void fc::sha1::encoder::reset ( )

Definition at line 55 of file sha1.cpp.

55 {
56 SHA1_Init( &my->ctx);
57}

◆ result()

sha1 fc::sha1::encoder::result ( )

Definition at line 50 of file sha1.cpp.

50 {
51 sha1 h;
52 SHA1_Final((uint8_t*)h.data(), &my->ctx );
53 return h;
54}
sha1()
Definition sha1.cpp:13
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::sha1::encoder::write ( const char * d,
uint32_t dlen )

Definition at line 47 of file sha1.cpp.

47 {
48 SHA1_Update( &my->ctx, d, dlen);
49}
Here is the caller graph for this function:

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