ewmscp
..
|
class to calculate md5sums. More...
#include <md5sum.h>
Public Member Functions | |
md5sum (const std::string &name) | |
void | update (void *data, size_t size) override |
proces size bytes in the block at data More... | |
void | update (size_t size) override |
proces size many zero bytes More... | |
void | finish () override |
finish calculation ad write to result More... | |
![]() | |
virtual | ~base ()=default |
virtual bool | parallelizable () const |
const std::string & | getName () const |
const std::string & | getResult () const |
void | setExpectedResult (const std::string &expectedResult) |
const std::string & | getExpectedResult () const |
bool | checkExpectation () const |
Private Attributes | |
struct md5_ctx | ctx |
Static Private Attributes | |
static factoryTemplate< md5sum > | factory |
Additional Inherited Members | |
![]() | |
static factoryClass * | newFactory (const std::string &aName) |
template<class T > | |
static void | addAllowedNamesToOption (T &option) |
![]() | |
base (const std::string &aName) | |
![]() | |
static std::map< std::string, factoryClass * > & | getFactoryMap () |
![]() | |
const std::string & | name |
std::string | result |
std::string | expected |
class to calculate md5sums.
Wrappers either the openssl implementation or a copy of the md5 implementation from the gnulib as it is used in the md5sum command.
checksum::md5sum::md5sum | ( | const std::string & | name | ) |
|
overridevirtual |
finish calculation ad write to result
Implements checksum::base.
Definition at line 70 of file md5sum.cpp.
References __md5_finish_ctx, ctx, and checksum::base::result.
|
overridevirtual |
proces size many zero bytes
Implements checksum::base.
Definition at line 44 of file md5sum.cpp.
References __md5_process_bytes, __md5_process_zero, ctx, block::nullBuffer(), and block::nullBufferSize().
|
overridevirtual |
proces size bytes in the block at data
Implements checksum::base.
Definition at line 20 of file md5sum.cpp.
References __md5_process_block, __md5_process_bytes, and ctx.
|
private |
|
staticprivate |