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

#include <sha512.hpp>

Classes

struct  impl
 

Public Member Functions

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

Detailed Description

Definition at line 32 of file sha512.hpp.

Constructor & Destructor Documentation

◆ encoder()

fc::sha512::encoder::encoder ( )

Definition at line 33 of file sha512.cpp.

33 {
34 reset();
35 }

◆ ~encoder()

fc::sha512::encoder::~encoder ( )

Definition at line 32 of file sha512.cpp.

32{}

Member Function Documentation

◆ put()

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

Definition at line 39 of file sha512.hpp.

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

◆ reset()

void fc::sha512::encoder::reset ( )

Definition at line 54 of file sha512.cpp.

54 {
55 SHA512_Init( &my->ctx);
56 }

◆ result()

sha512 fc::sha512::encoder::result ( )

Definition at line 49 of file sha512.cpp.

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

Definition at line 46 of file sha512.cpp.

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

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