|
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... | |
Public Member Functions inherited from checksum::base | |
| 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 Public Member Functions inherited from checksum::base | |
| static factoryClass * | newFactory (const std::string &aName) |
| template<class T > | |
| static void | addAllowedNamesToOption (T &option) |
Protected Member Functions inherited from checksum::base | |
| base (const std::string &aName) | |
Static Protected Member Functions inherited from checksum::base | |
| static std::map< std::string, factoryClass * > & | getFactoryMap () |
Protected Attributes inherited from checksum::base | |
| 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 |
1.8.17