OpenCPN Partial API docs
Loading...
Searching...
No Matches
FlexHash Class Reference

Public Member Functions

 FlexHash (size_t output_octets)
 
void Reset (void)
 
void Update (const void *input, size_t input_octets)
 
void Finish (void)
 
void Receive (void *output)
 
void Compute (const void *input, size_t input_octets, void *output)
 

Static Public Member Functions

static void Compute (const void *input, size_t input_octets, void *output, size_t output_octets)
 
static bool Test (void)
 

Protected Attributes

sha1_context m_Context
 
std::vector< unsigned char > m_Output
 

Detailed Description

Definition at line 35 of file FlexHash.h.

Constructor & Destructor Documentation

◆ FlexHash()

FlexHash::FlexHash ( size_t  output_octets)

Definition at line 35 of file FlexHash.cpp.

Member Function Documentation

◆ Compute() [1/2]

void FlexHash::Compute ( const void *  input,
size_t  input_octets,
void *  output 
)

Definition at line 73 of file FlexHash.cpp.

◆ Compute() [2/2]

void FlexHash::Compute ( const void *  input,
size_t  input_octets,
void *  output,
size_t  output_octets 
)
static

Definition at line 80 of file FlexHash.cpp.

◆ Finish()

void FlexHash::Finish ( void  )

Definition at line 44 of file FlexHash.cpp.

◆ Receive()

void FlexHash::Receive ( void *  output)

Definition at line 69 of file FlexHash.cpp.

◆ Reset()

void FlexHash::Reset ( void  )

Definition at line 37 of file FlexHash.cpp.

◆ Test()

bool FlexHash::Test ( void  )
static

Definition at line 86 of file FlexHash.cpp.

◆ Update()

void FlexHash::Update ( const void *  input,
size_t  input_octets 
)

Definition at line 39 of file FlexHash.cpp.

Member Data Documentation

◆ m_Context

sha1_context FlexHash::m_Context
protected

Definition at line 51 of file FlexHash.h.

◆ m_Output

std::vector<unsigned char> FlexHash::m_Output
protected

Definition at line 52 of file FlexHash.h.


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